SimpleDataTypesSerializer.GetSerializeMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSerializeMethod(Type) |
Retrieves a delegate able to serialize values of type |
GetSerializeMethod(Type, Boolean, DataTypeCode, Boolean) |
Retrieves a delegate able to serialize values of 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.