WYZTracker.Core/SerializationUtils.cs
/// <summary>
/// Serializes an object over the specified stream
/// </summary>
/// <typeparam name="T">Object type</typeparam>
/// <param name="obj">The object to serialize</param>
/// <param name="stream">The stream the object will be serialized into.</param>
Serializes an object over the specified stream
Serializes an object over the specified stream
public static void Serialize<T>(T obj, Stream stream)
        {
            XmlSerializer formatter = new XmlSerializer(typeof(T));
            formatter.Serialize(stream, obj);
        }
public static void Serialize < T > ( T obj , Stream stream ) { XmlSerializer formatter = new XmlSerializer ( typeof ( T ) ) ; formatter . Serialize ( stream , obj ) ; }
Serializes an object over the specified stream
Serializes an object over the specified stream
obj
T
The object to serialize
The object to serialize
stream
Stream
The stream the object will be serialized into.
The stream the object will be serialized into .
typeparam
None