public static DataRoot Deserialize(System.Xml.XmlReader input) { if ((input == null)) { throw new System.ArgumentNullException("input"); } DataRoot output = null; output = Microsoft.Rapid.Client.Core.SerializerUtil.Deserialize <DataRoot>(input, "SysConfiguration.xsd"); return(output); }
public static DataRoot Deserialize(string input) { if ((string.IsNullOrEmpty(input) == true)) { throw new System.ArgumentNullException("input"); } DataRoot output = null; output = Microsoft.Rapid.Client.Core.SerializerUtil.Deserialize <DataRoot>(input, "SysConfiguration.xsd"); return(output); }
public static void Serialize(DataRoot input, System.Xml.XmlWriter writer) { if ((input == null)) { throw new System.ArgumentNullException("input"); } if ((writer == null)) { throw new System.ArgumentNullException("writer"); } System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(DataRoot)); serializer.Serialize(writer, input); }
public DataRoot Clone() { DataRoot clone = new DataRoot(); if ((null != this.m_rowCollection)) { clone.m_rowCollection = ((RowCollection)(((System.ICloneable)(this.m_rowCollection)).Clone())); } if ((null != this.m_target)) { clone.m_target = ((string)(((System.ICloneable)(this.m_target)).Clone())); } return(clone); }
public static DataRoot Deserialize(System.Xml.XmlReader input, System.Xml.Schema.XmlSchema schema) { if ((input == null)) { throw new System.ArgumentNullException("input"); } if ((schema == null)) { throw new System.ArgumentNullException("schema"); } DataRoot output = null; output = Microsoft.Rapid.Client.Core.SerializerUtil.Deserialize <DataRoot>(input, schema); return(output); }
public static string Serialize(DataRoot input) { if ((input == null)) { throw new System.ArgumentNullException("input"); } System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); System.Xml.XmlWriter xmlWriter = System.Xml.XmlWriter.Create(stringBuilder, Microsoft.Rapid.Client.Core.RapidClientSchemas.XmlFragmentWriterSettings); try { System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(DataRoot)); serializer.Serialize(xmlWriter, input); return(stringBuilder.ToString()); } finally { xmlWriter.Close(); stringBuilder = null; xmlWriter = null; } }