System.Xml.Serialization.SchemaObjectWriter.Write_XmlSchemaFacet C# (CSharp) Method

Write_XmlSchemaFacet() private method

private Write_XmlSchemaFacet ( string name, XmlSchemaFacet o ) : void
name string
o System.Xml.Schema.XmlSchemaFacet
return void
        void Write_XmlSchemaFacet(string name, XmlSchemaFacet o) {
            if ((object)o == null) return;
            WriteStartElement(name);
            
            WriteAttribute("id", "", o.Id);
            WriteAttribute("value", "", o.Value);
            if (o.IsFixed) {
                WriteAttribute(@"fixed", @"", XmlConvert.ToString(o.IsFixed));
            }
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            Write5_XmlSchemaAnnotation((XmlSchemaAnnotation)o.@Annotation);
            WriteEndElement();
        }