JsonSerializable.LoadFromWithConstructor
Method
Definition
Overloads
| LoadFromWithConstructor<T>(Stream, Func<T>) |
Deserializes the specified stream using the given constructor in the Azure DocumentDB database service. |
| LoadFromWithConstructor<T>(Stream, Func<T>, JsonSerializerSettings) |
Deserializes the specified stream using the given constructor in the Azure DocumentDB database service. |
LoadFromWithConstructor<T>(Stream, Func<T>)
Deserializes the specified stream using the given constructor in the Azure DocumentDB database service.
public static T LoadFromWithConstructor<T> (System.IO.Stream stream, Func<T> constructorFunction);
Type Parameters
- T
The type of the object.
Parameters
- stream
- Stream
The stream to load from.
- constructorFunction
- Func<T>
The constructor used for the returning object.
Returns
T
The object loaded from the specified stream.
LoadFromWithConstructor<T>(Stream, Func<T>, JsonSerializerSettings)
Deserializes the specified stream using the given constructor in the Azure DocumentDB database service.
public static T LoadFromWithConstructor<T> (System.IO.Stream stream, Func<T> constructorFunction, Newtonsoft.Json.JsonSerializerSettings settings);
Type Parameters
- T
The type of the object.
Parameters
- stream
- Stream
The stream to load from.
- constructorFunction
- Func<T>
The constructor used for the returning object.
- settings
- Newtonsoft.Json.JsonSerializerSettings
The JsonSerializerSettings to be used.
Returns
T
The object loaded from the specified stream.