Class S122FeatureName
One featureName complex attribute (S-122 FC 2.0.0
§featureName): a name in a language, with how it is used on the chart.
public sealed record S122FeatureName : IEquatable<S122FeatureName>
- Inheritance
-
S122FeatureName
- Implements
- Inherited Members
Constructors
S122FeatureName(string?, string, int?)
One featureName complex attribute (S-122 FC 2.0.0
§featureName): a name in a language, with how it is used on the chart.
public S122FeatureName(string? Language, string Name, int? NameUsage)
Parameters
LanguagestringThe ISO 639-3 language code (
language), when present.NamestringThe name (
name).NameUsageint?The
nameUsagecode, when present: 1 default name display, 2 alternate name display, 3 no chart display.
Properties
Language
The ISO 639-3 language code (language), when present.
public string? Language { get; init; }
Property Value
Name
The name (name).
public string Name { get; init; }
Property Value
NameUsage
The nameUsage code, when present: 1 default name display,
2 alternate name display, 3 no chart display.
public int? NameUsage { get; init; }
Property Value
- int?
Methods
Preferred(IReadOnlyList<S122FeatureName>)
The name to show: the first with NameUsage 1 (default name display), else the first that is not marked "no chart display".
public static string? Preferred(IReadOnlyList<S122FeatureName> names)
Parameters
namesIReadOnlyList<S122FeatureName>The names in document order.
Returns
- string
The name, or
nullwhen there is none to show.