System.Runtime.Serialization.SchemaExporter.CreateAnyElementType C# (CSharp) Method

CreateAnyElementType() private static method

private static CreateAnyElementType ( ) : XmlSchemaComplexType
return System.Xml.Schema.XmlSchemaComplexType
        private static XmlSchemaComplexType CreateAnyElementType()
        {
            XmlSchemaComplexType anyElementType = new XmlSchemaComplexType();
            anyElementType.IsMixed = false;
            anyElementType.Particle = new XmlSchemaSequence();
            XmlSchemaAny any = new XmlSchemaAny();
            any.MinOccurs = 0;
            any.ProcessContents = XmlSchemaContentProcessing.Lax;
            ((XmlSchemaSequence)anyElementType.Particle).Items.Add(any);
            return anyElementType;
        }