DeserializeObject Method
Definition
- Namespace
- Cuemon.Runtime.Serialization.Formatters
- Assemblies
- Cuemon.Core.dll
DeserializeObject<T>(Stream)
Deserializes the specified value into an object of T.
public static T DeserializeObject<T>(Stream value)
Parameters
valueStreamThe object from which to deserialize the object graph.
Returns
- T
An object of
T.
Type Parameters
TThe 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
valueStreamThe object from which to deserialize the object graph.
setupAction<TOptions>The
TOptionswhich may be configured.
Returns
- T
An object of
T.
Type Parameters
TThe 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
valueStreamThe string from which to deserialize the object graph.
objectTypeTypeThe 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
valueStreamThe string from which to deserialize the object graph.
objectTypeTypeThe type of the deserialized object.
setupAction<TOptions>The
TOptionswhich 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
valueStreamThe object from which to deserialize the object graph.
optionsTOptionsThe configured
TOptions.
Returns
- T
An object of
T.
Type Parameters
TThe 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
valueStreamThe string from which to deserialize the object graph.
objectTypeTypeThe type of the deserialized object.
optionsTOptionsThe configured
TOptions.
Returns
- object
An object of
objectType.