Table of Contents

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

type Type

The Type to check

Returns

(WellKnownManagedTypes, bool)

A Tuple<T1, T2> of WellKnownManagedTypes with a bool if type is 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

Type

A Type associated to the type in input, otherwise null

IsComplex(WellKnownManagedTypes?)

Returns true if wellKnownManagedType represent a complex type

public static bool IsComplex(WellKnownManagedTypes? wellKnownManagedType)

Parameters

wellKnownManagedType WellKnownManagedTypes?

The WellKnownManagedTypes to check

Returns

bool

true if wellKnownManagedType is ComplexType or ComplexTypeAsJson

IsComplex(int?)

Returns true if wellKnownManagedType represent a complex type

public static bool IsComplex(int? wellKnownManagedType)

Parameters

wellKnownManagedType int?

The WellKnownManagedTypes to check

Returns

bool

true if wellKnownManagedType is ComplexType or ComplexTypeAsJson