Пример #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, "SQLServerProperty.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, "SQLServerProperty.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;
     }
 }