Operator Implicit
Implicit(TValue to GenericEnum<TValue, TDerived>)
Retrieves the enumeration member for a given value.
Declaration
public static implicit operator GenericEnum<TValue, TDerived>(TValue value)
Parameters
Type |
Name |
Description |
TValue |
value |
Value to implicitly get enumeration member for. |
Returns
Type |
Description |
GenericEnum<TValue, TDerived> |
Enumeration member instance on success, otherwise null . |
Implicit(GenericEnum<TValue, TDerived> to TValue)
Yields the value represented by the enumeration member.
Declaration
public static implicit operator TValue(GenericEnum<TValue, TDerived> member)
Parameters
Type |
Name |
Description |
GenericEnum<TValue, TDerived> |
member |
Enumeration member to get value from. |
Returns
Type |
Description |
TValue |
Value of enumeration member. |