[]
Creates a coder for enumeration values.
public static Coders.Coder<T> Enum<T>() where T : Enum
Type | Description |
---|---|
Coders.Coder<T> | A Coders.Coder<T> object for the specified enumeration type. |
Name | Description |
---|---|
T | The enumeration type. |
Creates a coder for enumeration values with a default value.
public static Coders.Coder<T> Enum<T>(T defValue) where T : struct, Enum
Type | Name | Description |
---|---|---|
T | defValue | The default enumeration value. |
Type | Description |
---|---|
Coders.Coder<T> | A coder for the specified enumeration type. |
Name | Description |
---|---|
T | The enumeration type. |