Table of Contents

DeserializeObject Method

Definition

DeserializeObject<T>(Stream)

Deserializes the specified value into an object of T.

public static T DeserializeObject<T>(Stream value)

Parameters

value Stream

The object from which to deserialize the object graph.

Returns

T

An object of T.

Type Parameters

T

The type of the object to return.

DeserializeObject<T>(Stream, Action<TOptions>)

Deserializes the specified value into an object of T.

public static T DeserializeObject<T>(Stream value, Action<TOptions> setup)

Parameters

value Stream

The object from which to deserialize the object graph.

setup Action<TOptions>

The TOptions which may be configured.

Returns

T

An object of T.

Type Parameters

T

The type of the object to return.

DeserializeObject(Stream, Type)

Deserializes the specified value into an object of objectType.

public static object DeserializeObject(Stream value, Type objectType)

Parameters

value Stream

The string from which to deserialize the object graph.

objectType Type

The type of the deserialized object.

Returns

object

An object of objectType.

DeserializeObject(Stream, Type, Action<TOptions>)

Deserializes the specified value into an object of objectType.

public static object DeserializeObject(Stream value, Type objectType, Action<TOptions> setup)

Parameters

value Stream

The string from which to deserialize the object graph.

objectType Type

The type of the deserialized object.

setup Action<TOptions>

The TOptions which may be configured.

Returns

object

An object of objectType.

DeserializeObject<T>(Stream, TOptions)

Deserializes the specified value into an object of T.

public static T DeserializeObject<T>(Stream value, TOptions options)

Parameters

value Stream

The object from which to deserialize the object graph.

options TOptions

The configured TOptions.

Returns

T

An object of T.

Type Parameters

T

The type of the object to return.

DeserializeObject(Stream, Type, TOptions)

Deserializes the specified value into an object of objectType.

public static object DeserializeObject(Stream value, Type objectType, TOptions options)

Parameters

value Stream

The string from which to deserialize the object graph.

objectType Type

The type of the deserialized object.

options TOptions

The configured TOptions.

Returns

object

An object of objectType.