Udostępnij za pośrednictwem


SimpleDataTypesSerializer.GetSerializeMethod Method

Definition

Overloads

GetSerializeMethod(Type)

Retrieves a delegate able to serialize values of type type.

GetSerializeMethod(Type, Boolean, DataTypeCode, Boolean)

Retrieves a delegate able to serialize values of type type.

GetSerializeMethod(Type)

Retrieves a delegate able to serialize values of type type.

public static Microsoft.Internal.VisualStudio.RemoteUI.SimpleDataTypesSerializer.SerializeMethod? GetSerializeMethod (Type type);
static member GetSerializeMethod : Type -> Microsoft.Internal.VisualStudio.RemoteUI.SimpleDataTypesSerializer.SerializeMethod
Public Shared Function GetSerializeMethod (type As Type) As SimpleDataTypesSerializer.SerializeMethod

Parameters

type
Type

The type to be serialized.

Returns

A delegate able to serialize type or null if type is not considered simple data.

Applies to

GetSerializeMethod(Type, Boolean, DataTypeCode, Boolean)

Retrieves a delegate able to serialize values of type type.

public static Microsoft.Internal.VisualStudio.RemoteUI.SimpleDataTypesSerializer.SerializeMethod? GetSerializeMethod (Type type, bool omitNullableHeader, out Microsoft.Internal.VisualStudio.RemoteUI.DataTypeCode dataTypeCode, out bool isNullableValueType);
static member GetSerializeMethod : Type * bool * DataTypeCode * bool -> Microsoft.Internal.VisualStudio.RemoteUI.SimpleDataTypesSerializer.SerializeMethod
Public Shared Function GetSerializeMethod (type As Type, omitNullableHeader As Boolean, ByRef dataTypeCode As DataTypeCode, ByRef isNullableValueType As Boolean) As SimpleDataTypesSerializer.SerializeMethod

Parameters

type
Type

The type to be serialized.

omitNullableHeader
Boolean

When true the returned delegate will write nullable values as Nil or their non-nullable equivalent. This is used when writing ICollection<T>.

dataTypeCode
DataTypeCode

Returns the DataTypeCode corresponding to type or Invalid.

isNullableValueType
Boolean

Returns whether type is a Nullable<T>.

Returns

A delegate able to serialize type or null if type is not considered simple data.

Applies to