Class GenericEnum<T>
- Namespace
- Skyline.DataMiner.Net.Ticketing.Validators
- Assembly
- SLNetTypes.dll
Represents a "generic" custom enum.
[JsonObject(MemberSerialization.OptIn)]
[Serializable]
public class GenericEnum<T>
Type Parameters
T
The underlying type of the enum.
- Inheritance
-
GenericEnum<T>
- Derived
- Extension Methods
Constructors
- GenericEnum()
Initializes a new instance of the GenericEnum<T> class.
Fields
Properties
- AllowInstanceExceptions
Gets or sets a value indicating whether instance exceptions are allowed.
- Count
Gets the number of entries this generic enum contains.
- EnumName
Gets or sets the name of the enum.
- Index
Gets or sets the index.
- Name
Gets the name of the entry at the index specified in Index or updates the Index with the index that corresponds with the set name.
- Value
Gets the value of the entry at the currently selected index or updates the Index with the index that corresponds with the set value.
Methods
- DynamicAdd(string, T)
Adds an entry with the specified name and value.
- FirstIndexWith(T)
Retrieves the index of the first entry with the specified value.
- FirstNameWith(T)
Retrieves the name of the first entry with the specified value.
- GetEntries()
Retrieves the entries defined in this enum.
- GetIndices(T)
Retrieves the indices of the entries that have the specified value as value.
- GetNames()
Retrieves the names of the entries defined in this enum.
- GetNames(T)
Retrieves the names of the entries that have the specified value as value.
- GetValues()
Retrieves the values for the entries defined in this enum.
- IndexOf(string)
Retrieves the index of the entry with the specified name.
- IsDefinedIndex(int)
Gets a value indicating whether this enum has an entry with the specified index.
- IsDefinedName(string)
Retrieves a value indicating whether this enum has an entry with the specified name.
- IsDefinedValue(T)
Retrieves a value indicating whether this enum has an entry with the specified value.
- NameAt(int)
Retrieves the name of the entry at the specified index.
- ToString()
Returns a string that represents the current object.
- ValueAt(int)
Retrieves the value of the entry at the specified index.
- ValueOf(string)
Retrieves the value of the entry with the specified name.