Class EnumStringMapper<T>
A class that maps strings to enum values. Uses a cache internally to speed lookups.
Inheritance
System.Object
EnumStringMapper<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 EnumStringMapper<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
MapStringToEnum(String)
Converts a string value to an enum of Type T.
Declaration
public static T MapStringToEnum(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
T |