예제 #1
0
        public Collated Clone()
        {
            Collated clone = new Collated();

            if ((null != this.m_dataRootCollection))
            {
                clone.m_dataRootCollection = ((DataRootCollection)(((System.ICloneable)(this.m_dataRootCollection)).Clone()));
            }
            return(clone);
        }
예제 #2
0
        public static Collated Deserialize(System.Xml.XmlReader input)
        {
            if ((input == null))
            {
                throw new System.ArgumentNullException("input");
            }
            Collated output = null;

            output = Microsoft.Rapid.Client.Core.SerializerUtil.Deserialize <Collated>(input, "SysConfiguration.xsd");
            return(output);
        }
예제 #3
0
        public static Collated Deserialize(string input)
        {
            if ((string.IsNullOrEmpty(input) == true))
            {
                throw new System.ArgumentNullException("input");
            }
            Collated output = null;

            output = Microsoft.Rapid.Client.Core.SerializerUtil.Deserialize <Collated>(input, "SysConfiguration.xsd");
            return(output);
        }
예제 #4
0
 public static void Serialize(Collated 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(Collated));
     serializer.Serialize(writer, input);
 }
예제 #5
0
        public static Collated 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");
            }
            Collated output = null;

            output = Microsoft.Rapid.Client.Core.SerializerUtil.Deserialize <Collated>(input, schema);
            return(output);
        }
예제 #6
0
 public static string Serialize(Collated 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(Collated));
         serializer.Serialize(xmlWriter, input);
         return(stringBuilder.ToString());
     }
     finally {
         xmlWriter.Close();
         stringBuilder = null;
         xmlWriter     = null;
     }
 }