Method Deserialize
Deserialize<T>(Stream)
Deserializes object from the specified stream.
public static T Deserialize<T>(Stream stream)
Parameters
stream
StreamStream with xml data.
Returns
- T
Type Parameters
T
Type of the deserialized object.
Deserialize<T>(string)
Deserializes object from the specified file without throwing exceptions.
public static T? Deserialize<T>(string filename)
Parameters
filename
stringPath to file with xml data.
Returns
- T
Type Parameters
T
Type of the deserialized object.