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