Struct TypeMappingStore
Represents a container for delegates used for type mapping.
public readonly struct TypeMappingStore- Inherited Members
Properties
FastDelegate
Fast delegate. Used when both source and destination types are known.
public Delegate FastDelegate { get; }Property Value
SlowDelegate
Slow delegate. Used when either source or destination type is unknown.
public Delegate SlowDelegate { get; }Property Value
Methods
GetDelegate()
Returns the SlowDelegate.
[Pure]
public Func<object, ITypeMapper, object> GetDelegate()Returns
Exceptions
- InvalidCastException
- When SlowDelegate is not an object => object mapping definition. 
GetDelegate<TDestination>()
Returns the SlowDelegate.
[Pure]
public Func<object, ITypeMapper, TDestination> GetDelegate<TDestination>()Returns
- Func<object, ITypeMapper, TDestination>
Type Parameters
- TDestination
- Destination type. 
Exceptions
- InvalidCastException
- When SlowDelegate is not an object => - TDestinationmapping definition.
GetDelegate<TSource, TDestination>()
Returns the FastDelegate.
[Pure]
public Func<TSource, ITypeMapper, TDestination> GetDelegate<TSource, TDestination>()Returns
- Func<TSource, ITypeMapper, TDestination>
Type Parameters
- TSource
- Source type. 
- TDestination
- Destination type. 
Exceptions
- InvalidCastException
- When FastDelegate is not a - TSource=>- TDestinationmapping definition.