public static T Deserialize <T>(this Stream poStream) where T : class, new() { return(XmlSerializersRepository .Acquire(typeof(T)) .Deserialize(poStream) as T); }
public static void Serialize <T>(this T poObject, Stream poStream) where T : class, new() { XmlSerializersRepository .Acquire(typeof(T)) .Serialize(poStream, poObject); }