Class TwoWayEnumMapping<TSource, TDest>
Defines methods allowing to map values
of TSource
enum type
to/from TDest
enum type.
public class TwoWayEnumMapping<TSource, TDest> : AbstractTwoWayEnumMapping<TSource, TDest>, IBaseObject where TSource : struct, Enum where TDest : struct, Enum
Type Parameters
TSource
Type of source enum.
TDest
Type of destination enum.
- Inheritance
-
AbstractTwoWayEnumMapping<TSource, TDest>TwoWayEnumMapping<TSource, TDest>
- Implements
Constructors
- TwoWayEnumMapping(TSource, TDest)
Initializes a new instance of the TwoWayEnumMapping<TSource, TDest> class.
Properties
- DestToSource
Destination to source mapping.
- SourceToDest
Source to destination mapping.
Methods
- CreateEnumMapping<T1, T2>(T1)
Creates enum mapping object.