Definition at line 7 of file EnumSerialization.cs.
◆ AddEnumToDic< T >()
bool BGC.Utility.EnumSerialization.AddEnumToDic< T > |
( |
T |
Enum | ) |
|
|
inline |
Adds an Enum Value to serialization
Definition at line 18 of file EnumSerialization.cs.
32 val = (int)Convert.ChangeType(Enum, typeof(
int));
34 catch (InvalidCastException)
List< Dictionary< string, int > > EnumStringValuePairs
Dictionary< Type, int > EnumTypeIndexPair
◆ StringToEnum< T >()
T BGC.Utility.EnumSerialization.StringToEnum< T > |
( |
string |
str | ) |
|
|
inline |
Converts a String to an Enum that was added to the serialization
Definition at line 49 of file EnumSerialization.cs.
51 Assert.IsFalse(
string.IsNullOrEmpty(str));
59 catch (InvalidCastException)
List< Dictionary< string, int > > EnumStringValuePairs
Dictionary< Type, int > EnumTypeIndexPair
◆ enumStringValuePairs
List<Dictionary<string, int> > BGC.Utility.EnumSerialization.enumStringValuePairs = null |
|
private |
◆ EnumStringValuePairs
◆ enumTypeIndexPair
Dictionary<Type, int> BGC.Utility.EnumSerialization.enumTypeIndexPair = null |
|
private |
◆ EnumTypeIndexPair
The documentation for this class was generated from the following file: