System.Xml.Serialization.SoapSchemaImporter.ImportAnyType C# (CSharp) Method

ImportAnyType() private method

private ImportAnyType ( XmlSchemaComplexType type, string typeNs ) : TypeMapping
type System.Xml.Schema.XmlSchemaComplexType
typeNs string
return TypeMapping
        TypeMapping ImportAnyType(XmlSchemaComplexType type, string typeNs){
            if (type.Particle == null)
                return null;
            if(!(type.Particle is XmlSchemaAll ||type.Particle is XmlSchemaSequence))
                return null;
            XmlSchemaGroupBase group = (XmlSchemaGroupBase) type.Particle;

            if (group.Items.Count != 1 || !(group.Items[0] is XmlSchemaAny))
                return null;
            return ImportRootMapping();
        }