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