Class S57EnumeratedValue
One of the predefined values of an enumerated (E) or list (L) S-57 attribute.
public sealed record S57EnumeratedValue : IEquatable<S57EnumeratedValue>
- Inheritance
-
S57EnumeratedValue
- Implements
- Inherited Members
Remarks
S-57 Edition 3.1, Appendix A, Chapter 2 calls these the attribute's expected input, each with an ID and a meaning.
Constructors
S57EnumeratedValue(int, string)
One of the predefined values of an enumerated (E) or list (L) S-57 attribute.
public S57EnumeratedValue(int Code, string Name)
Parameters
CodeintThe value's code (ID), as it's encoded in
ATVL.NamestringThe value's meaning, for example
white.
Remarks
S-57 Edition 3.1, Appendix A, Chapter 2 calls these the attribute's expected input, each with an ID and a meaning.
Properties
Code
The value's code (ID), as it's encoded in ATVL.
public int Code { get; init; }
Property Value
Name
The value's meaning, for example white.
public string Name { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.