43 instantiations of XmlSchemaComplexType
System.Data (2)
fx\src\data\System\Data\DataSet.cs (1)
3287XmlSchemaComplexType tempWSDL = new XmlSchemaComplexType();
fx\src\data\System\Data\DataTable.cs (1)
5917XmlSchemaComplexType type = new XmlSchemaComplexType();
System.Runtime.Serialization (9)
System\Runtime\Serialization\SchemaExporter.cs (8)
127XmlSchemaComplexType type = new XmlSchemaComplexType(); 362XmlSchemaComplexType type = new XmlSchemaComplexType(); 381XmlSchemaComplexType keyValueType = new XmlSchemaComplexType(); 461XmlSchemaComplexType type = new XmlSchemaComplexType(); 725XmlSchemaComplexType anyType = new XmlSchemaComplexType(); 739XmlSchemaComplexType anyElementType = new XmlSchemaComplexType(); 777XmlSchemaComplexType type = new XmlSchemaComplexType(); 792XmlSchemaComplexType type = new XmlSchemaComplexType();
System\Runtime\Serialization\SchemaImporter.cs (1)
146element.SchemaType = new XmlSchemaComplexType();
System.ServiceModel (4)
System\ServiceModel\Description\MessageContractExporter.cs (2)
171XmlSchemaComplexType genericMessageType = new XmlSchemaComplexType(); 418XmlSchemaComplexType wrapperType = new XmlSchemaComplexType();
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
92XmlSchemaComplexType innerType = new XmlSchemaComplexType(); 115XmlSchemaComplexType outerType = new XmlSchemaComplexType();
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\SchemaUtility.cs (5)
224XmlSchemaComplexType appSequenceType = new XmlSchemaComplexType(); 286XmlSchemaComplexType resolveType = new XmlSchemaComplexType(); 321XmlSchemaComplexType probeMatchType = new XmlSchemaComplexType(); 381XmlSchemaComplexType probeType = new XmlSchemaComplexType(); 478XmlSchemaComplexType scopesType = new XmlSchemaComplexType();
System.Web.Services (2)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
99XmlSchemaComplexType type = new XmlSchemaComplexType();
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
9139o = new global::System.Xml.Schema.XmlSchemaComplexType();
System.Xml (21)
System\Xml\Schema\Inference\Infer.cs (2)
919ct = new XmlSchemaComplexType(); 1245ct = new XmlSchemaComplexType();
System\Xml\Schema\XmlSchemaComplexType.cs (2)
48untypedAnyType = new XmlSchemaComplexType(); 61XmlSchemaComplexType localAnyType = new XmlSchemaComplexType();
System\Xml\Schema\XsdBuilder.cs (1)
1477builder.xso = builder.complexType = new XmlSchemaComplexType();
System\Xml\Serialization\SoapSchemaExporter.cs (3)
202type = new XmlSchemaComplexType(); 282type = new XmlSchemaComplexType(); 308type = new XmlSchemaComplexType();
System\Xml\Serialization\SoapSchemaImporter.cs (1)
125XmlSchemaComplexType type = new XmlSchemaComplexType();
System\Xml\Serialization\XmlSchemaExporter.cs (9)
158XmlSchemaComplexType type = new XmlSchemaComplexType(); 200XmlSchemaComplexType type = new XmlSchemaComplexType(); 396XmlSchemaComplexType type = new XmlSchemaComplexType(); 414XmlSchemaComplexType type = new XmlSchemaComplexType(); 463XmlSchemaComplexType type = new XmlSchemaComplexType(); 486XmlSchemaComplexType type = new XmlSchemaComplexType(); 505XmlSchemaComplexType type = new XmlSchemaComplexType(); 554type = new XmlSchemaComplexType(); 871type = new XmlSchemaComplexType();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
185XmlSchemaComplexType type = new XmlSchemaComplexType(); 254XmlSchemaComplexType type = new XmlSchemaComplexType();
System\Xml\Serialization\XmlSchemas.cs (1)
714XmlSchemaComplexType type = new XmlSchemaComplexType();
417 references to XmlSchemaComplexType
System.Data (41)
fx\src\data\System\Data\CodeGen\datacache.cs (3)
1204CodeMemberMethod getTypedDataSetSchema = MethodDecl(typeof(XmlSchemaComplexType), "GetTypedDataSetSchema", MemberAttributes.Static | MemberAttributes.Public); { 1208getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaComplexType),"type",New(typeof(XmlSchemaComplexType),new CodeExpression[] {})));
fx\src\data\System\Data\DataSet.cs (6)
93private static XmlSchemaComplexType schemaTypeForWSDL = null; 3283public static XmlSchemaComplexType GetDataSetSchema(XmlSchemaSet schemaSet) { 3287XmlSchemaComplexType tempWSDL = new XmlSchemaComplexType(); 3531if (type is XmlSchemaComplexType) { 3532XmlSchemaComplexType ct = (XmlSchemaComplexType)type;
fx\src\data\System\Data\DataTable.cs (2)
5916public static XmlSchemaComplexType GetDataTableSchema(XmlSchemaSet schemaSet) { 5917XmlSchemaComplexType type = new XmlSchemaComplexType();
fx\src\data\System\Data\XMLSchema.cs (30)
475if (isChoice && pt.MaxOccurs > Decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 479if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != Decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 520XmlSchemaComplexType ct = node.SchemaType as XmlSchemaComplexType; 548if (ct.BaseXmlSchemaType is XmlSchemaComplexType) 549ct = (XmlSchemaComplexType)ct.BaseXmlSchemaType; 646XmlSchemaComplexType ct = (XmlSchemaComplexType) FindTypeNode(dsElement); 778if (this.FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > Decimal.One && (el.SchemaType is XmlSchemaComplexType)) 877internal void HandleComplexType(XmlSchemaComplexType ct, DataTable table, ArrayList tableChildren, bool isNillable){ 897if (!(ct.BaseXmlSchemaType is XmlSchemaComplexType && this.FromInference)) 900if (ct.BaseXmlSchemaType is XmlSchemaComplexType) { 901HandleComplexType((XmlSchemaComplexType)ct.BaseXmlSchemaType, table, tableChildren, isNillable); 915if (ct.BaseXmlSchemaType is XmlSchemaComplexType && this.FromInference) 933if (ct.BaseXmlSchemaType is XmlSchemaComplexType) { 934HandleComplexType((XmlSchemaComplexType)ct.BaseXmlSchemaType, table, tableChildren, isNillable); 965internal XmlSchemaParticle GetParticle(XmlSchemaComplexType ct){ 1268XmlSchemaComplexType ct = node.SchemaType as XmlSchemaComplexType; 1334internal DataTable InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, bool isRef) { 2096else if (typeNode is XmlSchemaComplexType) { 2266XmlSchemaComplexType ct = (XmlSchemaComplexType) FindTypeNode(node); 2286if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) { 2310if (((XmlSchemaParticle)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2312if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2442if ((typeNode==null) || !(typeNode is XmlSchemaComplexType)) { 2446XmlSchemaComplexType ctNode = (XmlSchemaComplexType) typeNode; 2468DataTable table = InstantiateTable(node,(XmlSchemaComplexType)typeNode, (node.RefName != null)); // this is wrong , correct check should be node.RefName.IsEmpty
System.Data.Services.Design (6)
System\Data\EntityModel\EntityClassGenerator.cs (4)
284XmlSchemaComplexType associationType = csdlSchema.SchemaTypes[new XmlQualifiedName("TAssociation", csdlSchema.TargetNamespace)] as XmlSchemaComplexType; 318XmlSchemaComplexType complexType = entityContainerElement.SchemaType as XmlSchemaComplexType;
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (2)
386XmlSchemaComplexType schemaComplexType = schemaInfo.SchemaElement.ElementSchemaType as XmlSchemaComplexType;
System.Data.SqlXml (13)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
754return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), XmlSchemaComplexType.UntypedAnyType, false); 765return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false);
System\Xml\Xsl\XmlQueryType.cs (3)
512(baseSchemaType == XmlSchemaComplexType.AnyType || XmlSchemaType.IsDerivedFrom(SchemaType, baseSchemaType, /* except:*/XmlSchemaDerivationMethod.Empty)) && 572else if (SchemaType != XmlSchemaComplexType.AnyType) { 602if (isXQ || (SchemaType != XmlSchemaComplexType.AnyType && SchemaType != DatatypeImplementation.AnySimpleType))
System\Xml\Xsl\XmlQueryTypeFactory.cs (8)
362BuiltInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false, false, false); 372BuiltInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false, false, true); 400UntypedDocument = new ItemType(XmlTypeCode.Document, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.UntypedAnyType, false, false, true); 401UntypedElement = new ItemType(XmlTypeCode.Element, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.UntypedAnyType, false, false, true); 403NodeNotRtf = new ItemType(XmlTypeCode.Node, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false, false, true); 446if (contentType == XmlSchemaComplexType.AnyType) 450if (contentType == XmlSchemaComplexType.UntypedAnyType) { 733this.schemaType = XmlSchemaComplexType.AnyType;
System.Runtime.Serialization (23)
System\Runtime\Serialization\SchemaExporter.cs (12)
127XmlSchemaComplexType type = new XmlSchemaComplexType(); 362XmlSchemaComplexType type = new XmlSchemaComplexType(); 381XmlSchemaComplexType keyValueType = new XmlSchemaComplexType(); 461XmlSchemaComplexType type = new XmlSchemaComplexType(); 486XmlSchemaComplexContentExtension CreateTypeContent(XmlSchemaComplexType type, XmlQualifiedName baseTypeName, XmlSchema schema) 716XmlSchemaComplexType defaultXmlType = CreateAnyType(); 723static XmlSchemaComplexType CreateAnyType() 725XmlSchemaComplexType anyType = new XmlSchemaComplexType(); 737static XmlSchemaComplexType CreateAnyElementType() 739XmlSchemaComplexType anyElementType = new XmlSchemaComplexType(); 777XmlSchemaComplexType type = new XmlSchemaComplexType(); 792XmlSchemaComplexType type = new XmlSchemaComplexType();
System\Runtime\Serialization\SchemaImporter.cs (11)
318XmlSchemaComplexType complexType = type as XmlSchemaComplexType; 451else if (type is XmlSchemaComplexType) 453XmlSchemaComplexType complexType = (XmlSchemaComplexType)type; 725xmlDataContract.HasRoot = !IsXmlAnyElementType(xsdType as XmlSchemaComplexType); 752XmlSchemaComplexType complexType = xsdType as XmlSchemaComplexType; 775bool IsXmlAnyElementType(XmlSchemaComplexType xsdType) 797bool IsXmlAnyType(XmlSchemaComplexType xsdType) 1358void CheckComplexType(XmlQualifiedName typeName, XmlSchemaComplexType type)
System.ServiceModel (14)
System\ServiceModel\Description\MessageContractExporter.cs (2)
171XmlSchemaComplexType genericMessageType = new XmlSchemaComplexType(); 418XmlSchemaComplexType wrapperType = new XmlSchemaComplexType();
System\ServiceModel\Description\MessageContractImporter.cs (7)
665XmlSchemaComplexType complexType = GetElementComplexType(part.Element, allSchemas, out ns, out elementFormDefault); 1256static XmlSchemaComplexType GetElementComplexType(XmlQualifiedName elementName, XmlSchemaSet schemaSet, out string ns, out XmlSchemaForm elementFormDefault) 1281return schemaType as XmlSchemaComplexType; 1284static XmlSchemaSequence GetRootSequence(XmlSchemaComplexType complexType) 1604XmlSchemaComplexType complexType = GetElementComplexType(elementName, schemaSet, out ns, out elementFormDefault); 1655XmlSchemaComplexType complexType = GetElementComplexType(elementName, schemaSet, out ns, out elementFormDefault); 1984XmlSchemaComplexType complexType = GetElementComplexType(elementName, schemaSet, out ns, out elementFormDefault);
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (5)
74static XmlSchemaComplexType CreateOuterType() 92XmlSchemaComplexType innerType = new XmlSchemaComplexType(); 115XmlSchemaComplexType outerType = new XmlSchemaComplexType(); 129XmlSchemaComplexType outerType = CreateOuterType(); 344XmlSchemaComplexType outerType = CreateOuterType();
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\SchemaUtility.cs (5)
224XmlSchemaComplexType appSequenceType = new XmlSchemaComplexType(); 286XmlSchemaComplexType resolveType = new XmlSchemaComplexType(); 321XmlSchemaComplexType probeMatchType = new XmlSchemaComplexType(); 381XmlSchemaComplexType probeType = new XmlSchemaComplexType(); 478XmlSchemaComplexType scopesType = new XmlSchemaComplexType();
System.ServiceModel.Web (18)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (18)
70{ typeof(XmlSchemaComplexType), XmlComplexTypeHandler }, 119{ typeof(XmlSchemaComplexType), JsonComplexTypeHandler }, 262XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaObject; 414XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaObject; 741if (element.ElementSchemaType is XmlSchemaComplexType) 746e.ElementSchemaType is XmlSchemaComplexType && 747DerivesFrom((XmlSchemaComplexType)element.ElementSchemaType, (XmlSchemaComplexType)e.ElementSchemaType)).OrderBy(e => e.Name)) 754static bool DerivesFrom(XmlSchemaComplexType parent, XmlSchemaComplexType child) 760else if (child.BaseXmlSchemaType is XmlSchemaComplexType) 762return DerivesFrom(parent, (XmlSchemaComplexType)child.BaseXmlSchemaType); 772if (element.ElementSchemaType is XmlSchemaComplexType) 774XmlSchemaComplexType complexType = element.ElementSchemaType as XmlSchemaComplexType; 793return element.ElementSchemaType is XmlSchemaComplexType;
System.Web.Extensions (2)
Script\Services\WebServiceTypeData.cs (2)
113private static bool CheckIfCollection(XmlSchemaComplexType type) { 221else if (CheckIfCollection(schemaType as XmlSchemaComplexType)) {
System.Web.Services (14)
System\Web\Services\Description\HttpProtocolImporter.cs (3)
110XmlSchemaComplexType type = (XmlSchemaComplexType)Schemas.Find(part.Type, typeof(XmlSchemaComplexType));
System\Web\Services\Description\HttpProtocolReflector.cs (1)
99XmlSchemaComplexType type = new XmlSchemaComplexType();
System\Web\Services\Description\ServiceDescriptionSerializer.cs (10)
1870else if (ai is global::System.Xml.Schema.XmlSchemaComplexType) { 1871Write62_XmlSchemaComplexType(@"complexType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaComplexType)ai), false, false); 2257if (o.@SchemaType is global::System.Xml.Schema.XmlSchemaComplexType) { 2258Write62_XmlSchemaComplexType(@"complexType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaComplexType)o.@SchemaType), false, false); 3102void Write62_XmlSchemaComplexType(string n, string ns, global::System.Xml.Schema.XmlSchemaComplexType o, bool isNullable, bool needType) { 3109if (t == typeof(global::System.Xml.Schema.XmlSchemaComplexType)) { 4036else if (ai is global::System.Xml.Schema.XmlSchemaComplexType) { 4037Write62_XmlSchemaComplexType(@"complexType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaComplexType)ai), false, false); 9126global::System.Xml.Schema.XmlSchemaComplexType Read62_XmlSchemaComplexType(bool isNullable, bool checkType) { 9138global::System.Xml.Schema.XmlSchemaComplexType o;
System.Xml (281)
System\Xml\Dom\DocumentSchemaValidator.cs (8)
504XmlSchemaComplexType elementSchemaType = GetComplexType(schemaObject); 564return XmlSchemaComplexType.AnyTypeSkip; 568return XmlSchemaComplexType.AnyType; 575XmlSchemaComplexType ancestorSchemaType = GetComplexType(ancestorType); 582private XmlSchemaComplexType GetComplexType(XmlSchemaObject schemaObject) { 587XmlSchemaComplexType complexType = null; 589complexType = schemaElement.ElementSchemaType as XmlSchemaComplexType; 592complexType = schemaObject as XmlSchemaComplexType;
System\Xml\Schema\BaseProcessor.cs (1)
109else if (item is XmlSchemaComplexType) {
System\Xml\Schema\DataTypeImplementation.cs (4)
833XmlSchemaComplexType complexType; 834complexType = schemaType as XmlSchemaComplexType; 842complexType = complexType.BaseXmlSchemaType as XmlSchemaComplexType; 843} while(complexType != null && complexType != XmlSchemaComplexType.AnyType);
System\Xml\Schema\Inference\Infer.cs (12)
657XmlSchemaComplexType ct = schemaType as XmlSchemaComplexType; 671if (ct == null || ct == XmlSchemaComplexType.AnyType) { //It was null or simple type, after processing attributes, this might have been set 672ct = xse.SchemaType as XmlSchemaComplexType; 998private XmlSchemaSimpleContentExtension CheckSimpleContentExtension(XmlSchemaComplexType ct) { 1043internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr,XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs) 1214XmlSchemaComplexType ct = effectiveSchemaType as XmlSchemaComplexType; 1243if (ct == null || ct == XmlSchemaComplexType.AnyType) 1293private void MoveAttributes(XmlSchemaSimpleContentExtension scExtension, XmlSchemaComplexType ct) { 1302private void MoveAttributes(XmlSchemaComplexType ct, XmlSchemaSimpleContentExtension simpleContentExtension, bool bCreatingNewType) { 1402internal void MakeExistingAttributesOptional(XmlSchemaComplexType ct, XmlSchemaObjectCollection attributesInInstance) {
System\Xml\Schema\Preprocessor.cs (11)
649else if (schemaItems[i] is XmlSchemaComplexType) { 650XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaItems[i]; 778else if (items[i] is XmlSchemaComplexType) { 779XmlSchemaComplexType complexType = (XmlSchemaComplexType)items[i]; 792else if (originalType is XmlSchemaComplexType) { 948private void CheckRefinedComplexType(XmlSchemaComplexType ctype) { 1180if (element.SchemaType is XmlSchemaComplexType) { 1181PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, true); 1360private void PreprocessComplexType(XmlSchemaComplexType complexType, bool local) {
System\Xml\Schema\SchemaCollectionCompiler.cs (66)
62if (type is XmlSchemaComplexType) { 63CleanupComplexType((XmlSchemaComplexType)type); 94XmlSchemaComplexType complextype; 105else if ((complextype = item as XmlSchemaComplexType) != null) { 125XmlSchemaComplexType complextype; 136else if ((complextype = schema.Items[i] as XmlSchemaComplexType) != null) { 160this.schema.SchemaTypes.Insert(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType); 172if (type is XmlSchemaComplexType) { 173CompileComplexType((XmlSchemaComplexType)type); 195XmlSchemaComplexType type = (XmlSchemaComplexType)complexTypeStack.Pop(); 199if (type is XmlSchemaComplexType) { 200CheckParticleDerivation((XmlSchemaComplexType)type); 204if (element.ElementSchemaType is XmlSchemaComplexType && element.SchemaTypeName == XmlQualifiedName.Empty) { // only local schemaTypes 205CheckParticleDerivation((XmlSchemaComplexType)element.ElementSchemaType); 226XmlSchemaComplexType complexType = type as XmlSchemaComplexType; 227if (complexType == null || (!complexType.IsAbstract && type != XmlSchemaComplexType.AnyType)) { 255private static void CleanupComplexType(XmlSchemaComplexType complexType) { 300XmlSchemaComplexType complexType = element.SchemaType as XmlSchemaComplexType; 556private void CompileComplexType(XmlSchemaComplexType complexType) { 587complexType.SetBaseSchemaType(XmlSchemaComplexType.AnyType); 588CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 633private void CompileSimpleContentExtension(XmlSchemaComplexType complexType, XmlSchemaSimpleContentExtension simpleExtension) { 634XmlSchemaComplexType baseType = null; 636baseType = (XmlSchemaComplexType)complexType.Redefined; 650baseType = bto as XmlSchemaComplexType; 664private void CompileSimpleContentRestriction(XmlSchemaComplexType complexType, XmlSchemaSimpleContentRestriction simpleRestriction) { 665XmlSchemaComplexType baseType = null; 668baseType = (XmlSchemaComplexType)complexType.Redefined; 730private void CompileComplexContentExtension(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension) { 731XmlSchemaComplexType baseType = null; 733baseType = (XmlSchemaComplexType)complexType.Redefined; 783private void CompileComplexContentRestriction(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction) { 784XmlSchemaComplexType baseType = null; 786baseType = (XmlSchemaComplexType)complexType.Redefined; 821private void CheckParticleDerivation(XmlSchemaComplexType complexType) { 822XmlSchemaComplexType baseType = complexType.BaseXmlSchemaType as XmlSchemaComplexType; 823if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) { 1345private void PushComplexType(XmlSchemaComplexType complexType) { 1349private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) { 1416private void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy) { 1425(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1446(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1835xe.SetElementType(XmlSchemaComplexType.AnyType); 1836decl = XmlSchemaComplexType.AnyType.ElementDecl.Clone(); 1844xe.SetElementType(XmlSchemaComplexType.AnyType); 1845decl = XmlSchemaComplexType.AnyType.ElementDecl.Clone(); 1850if (xe.ElementSchemaType is XmlSchemaComplexType) { 1851XmlSchemaComplexType complexType = (XmlSchemaComplexType)xe.ElementSchemaType; 1868XmlSchemaComplexType ct = xe.ElementSchemaType as XmlSchemaComplexType; 1925private ContentValidator CompileComplexContent(XmlSchemaComplexType complexType) { 1981return XmlSchemaComplexType.AnyTypeContentValidator; 1985return XmlSchemaComplexType.AnyTypeContentValidator; 2112private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) { 2134private void CompileCompexTypeElements(XmlSchemaComplexType complexType) { 2166private XmlSchemaComplexType GetComplexType(XmlQualifiedName name) { 2167XmlSchemaComplexType type = this.schema.SchemaTypes[name] as XmlSchemaComplexType; 2177if (type is XmlSchemaComplexType) { 2178CompileComplexType((XmlSchemaComplexType)type);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (11)
451else if (schema.Items[i] is XmlSchemaComplexType) { 452XmlSchemaComplexType complexType = (XmlSchemaComplexType)schema.Items[i]; 525else if (redefine.Items[i] is XmlSchemaComplexType) { 526XmlSchemaComplexType complexType = (XmlSchemaComplexType)redefine.Items[i]; 535if (type is XmlSchemaComplexType) { 640private void CheckRefinedComplexType(XmlSchemaComplexType ctype) { 870if (element.SchemaType is XmlSchemaComplexType) { 871PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, true); 1046private void PreprocessComplexType(XmlSchemaComplexType complexType, bool local) {
System\Xml\Schema\SchemaSetCompiler.cs (66)
79XmlSchemaComplexType ct = type as XmlSchemaComplexType; 152schemaTypes.Insert(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType); 154schemaForSchema.SchemaTypes.Replace(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType); 165XmlSchemaComplexType ct = type as XmlSchemaComplexType; 189XmlSchemaComplexType type = (XmlSchemaComplexType)complexTypeStack.Pop(); 196XmlSchemaComplexType localType = type as XmlSchemaComplexType; 203XmlSchemaComplexType localComplexType = element.ElementSchemaType as XmlSchemaComplexType; 240private void CleanupComplexType(XmlSchemaComplexType complexType) { 284CleanupComplexType(complexType.Redefined as XmlSchemaComplexType); 301XmlSchemaComplexType complexType = element.SchemaType as XmlSchemaComplexType; 623private void CompileComplexType(XmlSchemaComplexType complexType) { 655complexType.SetBaseSchemaType(XmlSchemaComplexType.AnyType); 656CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 691private void CompileSimpleContentExtension(XmlSchemaComplexType complexType, XmlSchemaSimpleContentExtension simpleExtension) { 692XmlSchemaComplexType baseType = null; 694baseType = (XmlSchemaComplexType)complexType.Redefined; 708baseType = bto as XmlSchemaComplexType; 722private void CompileSimpleContentRestriction(XmlSchemaComplexType complexType, XmlSchemaSimpleContentRestriction simpleRestriction) { 723XmlSchemaComplexType baseType = null; 726baseType = (XmlSchemaComplexType)complexType.Redefined; 788private void CompileComplexContentExtension(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension) { 789XmlSchemaComplexType baseType = null; 791baseType = (XmlSchemaComplexType)complexType.Redefined; 842private void CompileComplexContentRestriction(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction) { 843XmlSchemaComplexType baseType = null; 845baseType = (XmlSchemaComplexType)complexType.Redefined; 880private void CheckParticleDerivation(XmlSchemaComplexType complexType) { 881XmlSchemaComplexType baseType = complexType.BaseXmlSchemaType as XmlSchemaComplexType; 883if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) { 906else if (baseType == XmlSchemaComplexType.AnyType) { //The complex type itself is not explicitly derived by restriction but it could have local elements which have anonymous types that are derived by restriction 911XmlSchemaComplexType localComplexType = localElement.ElementSchemaType as XmlSchemaComplexType; 1619private void PushComplexType(XmlSchemaComplexType complexType) { 1623private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) { 1695private void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy) { 1704(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1725(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1919private bool IsProcessContentsRestricted(XmlSchemaComplexType baseType, XmlSchemaAnyAttribute derivedAttributeWildcard, XmlSchemaAnyAttribute baseAttributeWildcard) { 1920if (baseType == XmlSchemaComplexType.AnyType) { 2181xe.SetElementType(XmlSchemaComplexType.AnyType); 2182decl = XmlSchemaComplexType.AnyType.ElementDecl.Clone(); 2190xe.SetElementType(XmlSchemaComplexType.AnyType); 2191decl = XmlSchemaComplexType.AnyType.ElementDecl.Clone(); 2196if (xe.ElementSchemaType is XmlSchemaComplexType) { 2197XmlSchemaComplexType complexType = (XmlSchemaComplexType)xe.ElementSchemaType; 2215XmlSchemaComplexType ct = xe.ElementSchemaType as XmlSchemaComplexType; 2280private ContentValidator CompileComplexContent(XmlSchemaComplexType complexType) { 2336return XmlSchemaComplexType.AnyTypeContentValidator; 2340return XmlSchemaComplexType.AnyTypeContentValidator; 2469private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) { 2504private void CompileComplexTypeElements(XmlSchemaComplexType complexType) { 2531private XmlSchemaComplexType GetComplexType(XmlQualifiedName name) { 2532XmlSchemaComplexType type = schemaTypes[name] as XmlSchemaComplexType; 2542if (type is XmlSchemaComplexType) { 2543CompileComplexType((XmlSchemaComplexType)type);
System\Xml\Schema\XmlSchema.cs (3)
337XmlElement("complexType", typeof(XmlSchemaComplexType)), 554XmlSchemaComplexType complexType; 558if ((complexType = items[i] as XmlSchemaComplexType) != null) {
System\Xml\Schema\XmlSchemaAttributeGroup.cs (2)
108if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present 109newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes);
System\Xml\Schema\XmlSchemaComplexType.cs (10)
32static XmlSchemaComplexType anyTypeLax; 33static XmlSchemaComplexType anyTypeSkip; 34static XmlSchemaComplexType untypedAnyType; 60static XmlSchemaComplexType CreateAnyType(XmlSchemaContentProcessing processContents) { 61XmlSchemaComplexType localAnyType = new XmlSchemaComplexType(); 106internal static XmlSchemaComplexType AnyType { 111internal static XmlSchemaComplexType UntypedAnyType { 116internal static XmlSchemaComplexType AnyTypeSkip { 359XmlSchemaComplexType complexType = (XmlSchemaComplexType)MemberwiseClone();
System\Xml\Schema\XmlSchemaElement.cs (3)
174[XmlElement("complexType", typeof(XmlSchemaComplexType)), 330XmlSchemaComplexType complexType = this.type as XmlSchemaComplexType;
System\Xml\Schema\XmlSchemaGroup.cs (2)
86if (XmlSchemaComplexType.HasParticleRef(this.particle, parentSchema)) { 87newGroup.particle = XmlSchemaComplexType.CloneParticle(this.particle, parentSchema) as XmlSchemaGroupBase;
System\Xml\Schema\XmlSchemaRedefine.cs (1)
37XmlElement("complexType", typeof(XmlSchemaComplexType)),
System\Xml\Schema\XmlSchemaSet.cs (1)
1305if (item is XmlSchemaComplexType) {
System\Xml\Schema\XmlSchemaType.cs (9)
56public static XmlSchemaComplexType GetBuiltInComplexType(XmlTypeCode typeCode) { 58return XmlSchemaComplexType.AnyType; 67public static XmlSchemaComplexType GetBuiltInComplexType(XmlQualifiedName qualifiedName) { 71if (qualifiedName.Equals(XmlSchemaComplexType.AnyType.QualifiedName)) { 72return XmlSchemaComplexType.AnyType; 74if (qualifiedName.Equals(XmlSchemaComplexType.UntypedAnyType.QualifiedName)) { 75return XmlSchemaComplexType.UntypedAnyType; 176if (this == XmlSchemaComplexType.AnyType) { 261if (baseType == XmlSchemaComplexType.AnyType) { //Not checking for restriction blocked since all types are implicitly derived by restriction from xs:anyType
System\Xml\Schema\XmlSchemaValidator.cs (2)
555XmlSchemaComplexType ct = currentElementDecl.SchemaType as XmlSchemaComplexType;
System\Xml\Schema\XsdBuilder.cs (2)
640private XmlSchemaComplexType complexType; 992this.complexType = (XmlSchemaComplexType)container;
System\Xml\Serialization\ImportContext.cs (3)
294if (item is XmlSchemaComplexType) { 295XmlSchemaComplexType ct = (XmlSchemaComplexType)item;
System\Xml\Serialization\SchemaObjectWriter.cs (7)
64else if (o is XmlSchemaComplexType) { 65return ((XmlSchemaComplexType)o).QualifiedName; 282if (t == typeof(XmlSchemaComplexType)) { 283Write35_XmlSchemaComplexType((XmlSchemaComplexType)o); 664void Write35_XmlSchemaComplexType(XmlSchemaComplexType o) { 847if (o.SchemaType is XmlSchemaComplexType) { 848Write35_XmlSchemaComplexType((XmlSchemaComplexType)o.SchemaType);
System\Xml\Serialization\SoapSchemaExporter.cs (7)
199XmlSchemaComplexType type = (XmlSchemaComplexType)types[mapping]; 278XmlSchemaComplexType type = (XmlSchemaComplexType)types[mapping]; 305XmlSchemaComplexType type = (XmlSchemaComplexType)types[mapping]; 320void ExportTypeMembers(XmlSchemaComplexType type, MemberMapping[] members, string ns) {
System\Xml\Serialization\SoapSchemaImporter.cs (12)
125XmlSchemaComplexType type = new XmlSchemaComplexType(); 187if (element.SchemaType is XmlSchemaComplexType) { 188mapping = ImportType((XmlSchemaComplexType)element.SchemaType, ns, false); 234if (type is XmlSchemaComplexType) 235mapping = ImportType((XmlSchemaComplexType)type, name.Namespace, excludeFromImport); 246TypeMapping ImportType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport) { 258TypeMapping ImportAnyType(XmlSchemaComplexType type, string typeNs){ 270StructMapping ImportStructType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport) { 314MemberMapping[] ImportTypeMembers(XmlSchemaComplexType type, string typeNs, CodeIdentifiers members) { 419XmlSchemaContentModel model = ((XmlSchemaComplexType)type).ContentModel; 645object type = Schemas.Find(name, typeof(XmlSchemaComplexType)); 657object type = Schemas.Find(name, typeof(XmlSchemaComplexType));
System\Xml\Serialization\XmlSchemaExporter.cs (17)
126XmlSchemaComplexType complexType = schemaType as XmlSchemaComplexType; 158XmlSchemaComplexType type = new XmlSchemaComplexType(); 200XmlSchemaComplexType type = new XmlSchemaComplexType(); 396XmlSchemaComplexType type = new XmlSchemaComplexType(); 414XmlSchemaComplexType type = new XmlSchemaComplexType(); 463XmlSchemaComplexType type = new XmlSchemaComplexType(); 486XmlSchemaComplexType type = new XmlSchemaComplexType(); 505XmlSchemaComplexType type = new XmlSchemaComplexType(); 551XmlSchemaComplexType type = (XmlSchemaComplexType) types[currentMapping]; 606void ExportAttributeAccessor(XmlSchemaComplexType type, AttributeAccessor accessor, bool valueTypeOptional, string ns) { 867XmlSchemaComplexType type = (XmlSchemaComplexType)types[mapping]; 895model.IsMixed = XmlSchemaImporter.IsMixed((XmlSchemaComplexType)types[mapping.BaseMapping]); 922void ExportTypeMembers(XmlSchemaComplexType type, MemberMapping[] members, string name, string ns, bool hasSimpleContent, bool openModel) { 1043void AddXmlnsAnnotation(XmlSchemaComplexType type, string xmlnsMemberName) {
System\Xml\Serialization\XmlSchemaImporter.cs (20)
185XmlSchemaComplexType type = new XmlSchemaComplexType(); 254XmlSchemaComplexType type = new XmlSchemaComplexType(); 351if (element.SchemaType is XmlSchemaComplexType) 352mapping = ImportType((XmlSchemaComplexType)element.SchemaType, ns, identifier, desiredMappingType, baseType, TypeFlags.CanBeElementValue); 474if (type is XmlSchemaComplexType) { 475mapping = ImportType((XmlSchemaComplexType)type, name.Namespace, name.Name, desiredMappingType, baseType, flags); 488TypeMapping ImportType(XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType, TypeFlags flags) { 574if (type is XmlSchemaComplexType) { 575if (((XmlSchemaComplexType)type).IsAbstract) 694if (!(type is XmlSchemaComplexType)) 697XmlSchemaComplexType ct = (XmlSchemaComplexType)type; 711if (type is XmlSchemaComplexType) { 713XmlSchemaComplexType ct = (XmlSchemaComplexType)type; 1181if (!(type is XmlSchemaComplexType)) return null; 1263if (refType is XmlSchemaComplexType) 1599if (sourceType is XmlSchemaComplexType) return null; 1777object type = Schemas.Find(name, typeof(XmlSchemaComplexType)); 1779return (XmlSchemaComplexType)type;
System\Xml\Serialization\XmlSchemas.cs (1)
714XmlSchemaComplexType type = new XmlSchemaComplexType();