public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
            {
                XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
                XmlSchemaSequence    xmlSchemaSequence    = new XmlSchemaSequence();
                GaugeData            gaugeData            = new GaugeData();

                xs.Add(gaugeData.GetSchemaSerializable());
                XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();

                xmlSchemaAny.Namespace       = "http://www.w3.org/2001/XMLSchema";
                xmlSchemaAny.MinOccurs       = 0m;
                xmlSchemaAny.MaxOccurs       = 79228162514264337593543950335m;
                xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
                xmlSchemaSequence.Items.Add(xmlSchemaAny);
                XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();

                xmlSchemaAny2.Namespace       = "urn:schemas-microsoft-com:xml-diffgram-v1";
                xmlSchemaAny2.MinOccurs       = 1m;
                xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
                xmlSchemaSequence.Items.Add(xmlSchemaAny2);
                XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();

                xmlSchemaAttribute.Name       = "namespace";
                xmlSchemaAttribute.FixedValue = gaugeData.Namespace;
                xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
                XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();

                xmlSchemaAttribute2.Name       = "tableTypeName";
                xmlSchemaAttribute2.FixedValue = "ValuesDataTable";
                xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
                xmlSchemaComplexType.Particle = xmlSchemaSequence;
                return(xmlSchemaComplexType);
            }
        public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
        {
            GaugeData            gaugeData            = new GaugeData();
            XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
            XmlSchemaSequence    xmlSchemaSequence    = new XmlSchemaSequence();

            xs.Add(gaugeData.GetSchemaSerializable());
            XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();

            xmlSchemaAny.Namespace = gaugeData.Namespace;
            xmlSchemaSequence.Items.Add(xmlSchemaAny);
            xmlSchemaComplexType.Particle = xmlSchemaSequence;
            return(xmlSchemaComplexType);
        }