示例#1
0
 public static T Deserialize <T>(this XContainer element)
 {
     return(element.Deserialize <T>(new XmlSerializer(typeof(T))));
 }
 public static object Deserialize(this XContainer element, Type type, string rootName = null, string rootNamespace = null)
 {
     return(element.Deserialize(type, XmlSerializerFactory.Create(type, rootName, rootNamespace)));
 }
示例#3
0
 public static T Deserialize <T>(this XContainer element)
 {
     return(element.Deserialize <T>(null));
 }
 public static dynamic Deserialize <T>(this XContainer element)
     where T : class
 {
     return(element.Deserialize <T>(null));
 }