Class NativeTypeMapper
- Namespace
- MASES.EntityFrameworkCore.KNet.Serialization
- Assembly
- MASES.EntityFrameworkCore.KNet.Serialization.dll
An helper class used to manage native and special types in serialization
public static class NativeTypeMapper
- Inheritance
-
NativeTypeMapper
- Inherited Members
Methods
GetValue(Type?)
Returns a Tuple<T1, T2> of WellKnownManagedTypes with a bool indicating if the types supports Nullable
public static (WellKnownManagedTypes, bool) GetValue(Type? type)
Parameters
Returns
- (WellKnownManagedTypes, bool)
A Tuple<T1, T2> of WellKnownManagedTypes with a bool if
typeis mapped otherwise returns Undefined and false for Nullable support
GetValue((WellKnownManagedTypes, bool))
Returns a Type mapped from the type in input
public static Type GetValue((WellKnownManagedTypes, bool) type)
Parameters
type(WellKnownManagedTypes, bool)Tuple<T1, T2> of WellKnownManagedTypes with a bool indicating if the type needs support for Nullable
Returns
IsComplex(WellKnownManagedTypes?)
Returns true if wellKnownManagedType represent a complex type
public static bool IsComplex(WellKnownManagedTypes? wellKnownManagedType)
Parameters
wellKnownManagedTypeWellKnownManagedTypes?The WellKnownManagedTypes to check
Returns
- bool
true if
wellKnownManagedTypeis ComplexType or ComplexTypeAsJson
IsComplex(int?)
Returns true if wellKnownManagedType represent a complex type
public static bool IsComplex(int? wellKnownManagedType)
Parameters
wellKnownManagedTypeint?The WellKnownManagedTypes to check
Returns
- bool
true if
wellKnownManagedTypeis ComplexType or ComplexTypeAsJson