public override DataSet Clone()
        {
            GaugeData obj = (GaugeData)base.Clone();

            obj.InitVars();
            obj.SchemaSerializationMode = SchemaSerializationMode;
            return(obj);
        }
        public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
        {
            GaugeData            gaugeData            = new GaugeData();
            XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
            XmlSchemaSequence    xmlSchemaSequence    = new XmlSchemaSequence();

            xs.Add(gaugeData.GetSchemaSerializable());
            XmlSchemaAny item = new XmlSchemaAny
            {
                Namespace = gaugeData.Namespace
            };

            xmlSchemaSequence.Items.Add(item);
            xmlSchemaComplexType.Particle = xmlSchemaSequence;
            return(xmlSchemaComplexType);
        }
            public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
            {
                XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
                XmlSchemaSequence    xmlSchemaSequence    = new XmlSchemaSequence();
                GaugeData            gaugeData            = new GaugeData();

                xs.Add(gaugeData.GetSchemaSerializable());
                XmlSchemaAny item = new XmlSchemaAny
                {
                    Namespace       = "http://www.w3.org/2001/XMLSchema",
                    MinOccurs       = 0m,
                    MaxOccurs       = decimal.MaxValue,
                    ProcessContents = XmlSchemaContentProcessing.Lax
                };

                xmlSchemaSequence.Items.Add(item);
                XmlSchemaAny item2 = new XmlSchemaAny
                {
                    Namespace       = "urn:schemas-microsoft-com:xml-diffgram-v1",
                    MinOccurs       = 1m,
                    ProcessContents = XmlSchemaContentProcessing.Lax
                };

                xmlSchemaSequence.Items.Add(item2);
                XmlSchemaAttribute item3 = new XmlSchemaAttribute
                {
                    Name       = "namespace",
                    FixedValue = gaugeData.Namespace
                };

                xmlSchemaComplexType.Attributes.Add(item3);
                XmlSchemaAttribute item4 = new XmlSchemaAttribute
                {
                    Name       = "tableTypeName",
                    FixedValue = "ValuesDataTable"
                };

                xmlSchemaComplexType.Attributes.Add(item4);
                xmlSchemaComplexType.Particle = xmlSchemaSequence;
                return(xmlSchemaComplexType);
            }