Public Member Functions | |
Code (RepresentationType v, params RepresentationType[] validValues) | |
Constructor. | |
Code (RepresentationType v, ICollection< RepresentationType > validValues) | |
override string | ToString () |
Conversion to string. | |
bool | Equals (Code< RepresentationType, ConcreteType > other) |
Equality comparison. | |
override bool | Equals (object other) |
override int | GetHashCode () |
Hash code getter. | |
Static Public Member Functions | |
static bool | operator== (Code< RepresentationType, ConcreteType > first, Code< RepresentationType, ConcreteType > second) |
Equality operator. | |
static bool | operator!= (Code< RepresentationType, ConcreteType > first, Code< RepresentationType, ConcreteType > second) |
Inequality operator. | |
Properties | |
RepresentationType | Value [get] |
The underlying value. |
RepresentationType | The underlying representation type from which values are drawn. | |
ConcreteType | The actual type that derives from Code. Used to disambiguate between different specializations of Code with the same representation type. |
DotNX::Core::Code< RepresentationType, ConcreteType >::Code | ( | RepresentationType | v, | |
params RepresentationType[] | validValues | |||
) |
Constructor.
Ensures that the argument is a valid value. Although it may seem wasteful to specify valid values in the constructor call, derived classes usually have only one such constructor, which is the only place where these values are actually explicitly mentioned.
v | The conventional value. | |
validValues | The collection of valid values. |
DotNX::Core::Code< RepresentationType, ConcreteType >::Code | ( | RepresentationType | v, | |
ICollection< RepresentationType > | validValues | |||
) |
override string DotNX::Core::Code< RepresentationType, ConcreteType >::ToString | ( | ) |
Conversion to string.
bool DotNX::Core::Code< RepresentationType, ConcreteType >::Equals | ( | Code< RepresentationType, ConcreteType > | other | ) |
Equality comparison.
other | The Code to be compared. |
true
if the instance and the argument are equal, false
otherwise. override bool DotNX::Core::Code< RepresentationType, ConcreteType >::Equals | ( | object | other | ) |
override int DotNX::Core::Code< RepresentationType, ConcreteType >::GetHashCode | ( | ) |
Hash code getter.
static bool DotNX::Core::Code< RepresentationType, ConcreteType >::operator== | ( | Code< RepresentationType, ConcreteType > | first, | |
Code< RepresentationType, ConcreteType > | second | |||
) | [static] |
static bool DotNX::Core::Code< RepresentationType, ConcreteType >::operator!= | ( | Code< RepresentationType, ConcreteType > | first, | |
Code< RepresentationType, ConcreteType > | second | |||
) | [static] |
RepresentationType DotNX::Core::Code< RepresentationType, ConcreteType >::Value [get] |
The underlying value.