WYZTracker.Core/SerializationUtils.cs
/// <summary>
/// Deserializes an object from the specified stream.
/// </summary>
/// <typeparam name="T">The object type.</typeparam>
/// <param name="stream">The stream with the serialized object.</param>
/// <returns>The deserialized object.</returns>
Deserializes an object from the specified stream.
Deserializes an object from the specified stream .
public static T Deserialize<T>(Stream stream)
        {
            XmlSerializer formatter = new XmlSerializer(typeof(T));
            T result = (T) formatter.Deserialize(stream);
            return result;
        }
public static T Deserialize < T > ( Stream stream ) { XmlSerializer formatter = new XmlSerializer ( typeof ( T ) ) ; T result = ( T ) formatter . Deserialize ( stream ) ; return result ; }
Deserializes an object from the specified stream.
Deserializes an object from the specified stream .
The deserialized object.
The deserialized object .
stream
Stream
The stream with the serialized object.
The stream with the serialized object .
typeparam
The object type.
The object type .