コード例 #1
0
        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, "SQLServerProperty.xsd");
            return(output);
        }
コード例 #2
0
        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, "SQLServerProperty.xsd");
            return(output);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 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;
     }
 }