AbstractValueMapT Class
Base class of an abstract value map. If you're creating a new restricted collection of abstract value maps, please make a new derived abstract class of this one to constrain them.
Namespace: MobileTrack.Common.EnumsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public abstract class AbstractValueMap<T> : IEquatable<T>,
IComparable, IComparable<T>, IParsable<T>
where T : AbstractValueMap<T>
- Inheritance
- Object AbstractValueMapT
- Derived
- More Less
- Implements
- IComparable, IComparableT, IEquatableT, IParsableT
Type Parameters
- T
- Enumerator type derived from AbstractValueMapT
| AbstractValueMapT |
Default constructor for AbstractValueMap types. the receiving end must be a private constructor!
|
| I18NDescription |
Human-readable description of the abstract enum, to be used as localization key.
|
| I18NTitle |
Human-readable title of the abstract enum, to be used as localization key.
|
| Value |
Value of the abstract enum (as a string for easy storage in databases)
|
| CompareTo(T) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
| CompareTo(Object) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
| Equals(T) | Indicates whether the current object is equal to another object of the same type. |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) |
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode) |
| IsAnyOf |
Checks if the current value is any of the provided options.
|
| IsEmpty |
Returns if the value is empty.
|
| ListValues |
List all possible values of a Value Mapping into a dictionary (value, i18nKey)
|
| Parse | Parses a string into a value. |
| ToString | Returns a string that represents the current object. (Overrides ObjectToString) |
| TryParse | Tries to parse a string into a value. |
| Empty |
Generates an empty value map, showing no value has been assigned.
|