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