Class NullableEnumStringMapper<T>
Static class for mapping between strings and nullable enums. Uses a cache internally to speed lookups.
Inheritance
object
NullableEnumStringMapper<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.Mapping.TypeConversion
Assembly: Cassandra.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 |
|---|---|
| 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 |
|---|---|---|
| string | value |
Returns
| Type | Description |
|---|---|
| T |