src/Foundation/Infrastructure/Gimela.Infrastructure.Serialization/FileSerializer.cs
/// <summary>
/// Deserialize an object from a TextReader
/// </summary>
/// <typeparam name="T">Data type of object</typeparam>
/// <param name="reader">TextReader to deserialize from</param>
/// <returns>New instance of the desired object</returns>
Deserialize an object from a TextReader
Deserialize an object from a TextReader
public static T LoadItem<T>(TextReader reader)
    {
      XmlSerializer xs = new XmlSerializer(typeof(T));
      return (T)xs.Deserialize(reader);
    }
public static T LoadItem < T > ( TextReader reader ) { XmlSerializer xs = new XmlSerializer ( typeof ( T ) ) ; return ( T ) xs . Deserialize ( reader ) ; }
Deserialize an object from a TextReader
Deserialize an object from a TextReader
New instance of the desired object
New instance of the desired object
reader
TextReader
TextReader to deserialize from
TextReader to deserialize from
typeparam
Data type of object
Data type of object