Class NullableEnumStringMapper<T>
Static class for mapping between strings and nullable enums. Uses a cache internally to speed lookups.
Inheritance
System.Object
NullableEnumStringMapper<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Mapping.TypeConversion
Assembly: Dse.dll
Syntax
public static class NullableEnumStringMapper<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
MapEnumToString(T)
Converts a nullable enum value of Type T to a string.
Declaration
public static string MapEnumToString(T enumValue)
Parameters
Type | Name | Description |
---|---|---|
T | enumValue |
Returns
Type | Description |
---|---|
System.String |
MapStringToEnum(String)
Converts a string value to a nullable enum value of Type T.
Declaration
public static T MapStringToEnum(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
T |