12 writes to ContentModel
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
497type.ContentModel = new XmlSchemaComplexContent();
System.Private.Xml (11)
System\Xml\Schema\Inference\Infer.cs (4)
719ct.ContentModel = sc; 816ct.ContentModel = sc; 915ct.ContentModel = null; 1244ct.ContentModel = sc;
System\Xml\Schema\XmlSchemaComplexType.cs (2)
351complexType.ContentModel = newSimpleContent; 384complexType.ContentModel = newComplexContent;
System\Xml\Schema\XsdBuilder.cs (2)
1649builder._complexType.ContentModel = builder._complexContent; 1715builder._complexType.ContentModel = builder._simpleContent;
System\Xml\Serialization\XmlSchemaExporter.cs (3)
994type.ContentModel = model; 1003type.ContentModel = model; 1097type.ContentModel = model;
96 references to ContentModel
System.Data.Common (15)
System\Data\XMLSchema.cs (15)
602if (ct.ContentModel is XmlSchemaSimpleContent) 604XmlSchemaAnnotated? cContent = ((XmlSchemaSimpleContent)(ct.ContentModel)).Content; 1044if (ct.ContentModel != null) 1054if (ct.ContentModel is XmlSchemaComplexContent) 1056XmlSchemaAnnotated? cContent = ((XmlSchemaComplexContent)(ct.ContentModel)).Content; 1072HandleSimpleContentColumn(ccExtension.BaseTypeName.ToString(), table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1076HandleSimpleContentColumn(ccExtension.BaseTypeName.Name, table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1098Debug.Assert(ct.ContentModel is XmlSchemaSimpleContent, "expected simpleContent or complexContent"); 1099XmlSchemaAnnotated cContent = ((XmlSchemaSimpleContent)(ct.ContentModel)).Content!; 1110HandleSimpleTypeSimpleContentColumn((XmlSchemaSimpleType)ct.BaseXmlSchemaType, ccExtension.BaseTypeName.Name, table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1141if (ct.ContentModel != null) 1143if (ct.ContentModel is XmlSchemaComplexContent) 1145XmlSchemaAnnotated cContent = ((XmlSchemaComplexContent)(ct.ContentModel)).Content!; 1158Debug.Assert(ct.ContentModel is XmlSchemaSimpleContent, "expected simpleContent or complexContent"); 1479bool isSimpleContent = ((node.ElementSchemaType!.BaseXmlSchemaType != null) || (ct != null && ct.ContentModel is XmlSchemaSimpleContent));
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\SchemaExporter.cs (1)
498type.ContentModel.Content = extension;
System\Runtime\Serialization\SchemaImporter.cs (4)
313if (complexType.ContentModel != null) 315if (complexType.ContentModel is XmlSchemaComplexContent complexContent) 448if (complexType.ContentModel == null) 455XmlSchemaContentModel contentModel = complexType.ContentModel;
System.Private.Xml (76)
System\Xml\Schema\Inference\Infer.cs (8)
669else if (null != ct.ContentModel) 709if (null != ct.ContentModel) 750else if (null != ct.ContentModel) 788else if (null != ct.ContentModel) 911if (ct.ContentModel != null) 981XmlSchemaSimpleContent? sc = ct.ContentModel as XmlSchemaSimpleContent; 1254if (ct.ContentModel != null) 1403if (ct.ContentModel != null)
System\Xml\Schema\Preprocessor.cs (10)
1110if (ctype.ContentModel != null) 1113if (ctype.ContentModel is XmlSchemaComplexContent) 1115XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.ContentModel; 1127XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.ContentModel; 1698if (complexType.ContentModel != null) 1700SetParent(complexType.ContentModel, complexType); //SimpleContent / complexCotent 1701PreprocessAnnotation(complexType.ContentModel); 1705if (complexType.ContentModel is XmlSchemaSimpleContent) 1707XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.ContentModel; 1761XmlSchemaComplexContent content = (XmlSchemaComplexContent)complexType.ContentModel;
System\Xml\Schema\SchemaCollectionCompiler.cs (6)
330if (complexType.ContentModel != null) 332if (complexType.ContentModel is XmlSchemaSimpleContent simpleContent) 346XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel; 716if (complexType.ContentModel != null) 718if (complexType.ContentModel is XmlSchemaSimpleContent simpleContent) 732XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (10)
783if (ctype.ContentModel != null) 786if (ctype.ContentModel is XmlSchemaComplexContent) 788XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.ContentModel; 800XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.ContentModel; 1360if (complexType.ContentModel != null) 1362SetParent(complexType.ContentModel, complexType); //SimpleContent / complexCotent 1363PreprocessAnnotation(complexType.ContentModel); 1367if (complexType.ContentModel is XmlSchemaSimpleContent) 1369XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.ContentModel; 1423XmlSchemaComplexContent content = (XmlSchemaComplexContent)complexType.ContentModel;
System\Xml\Schema\SchemaSetCompiler.cs (6)
319if (complexType.ContentModel != null) 321if (complexType.ContentModel is XmlSchemaSimpleContent simpleContent) 335XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel; 807if (complexType.ContentModel != null) 809if (complexType.ContentModel is XmlSchemaSimpleContent simpleContent) 823XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel;
System\Xml\Schema\XmlSchemaComplexType.cs (3)
327if (complexType.ContentModel != null) 329XmlSchemaSimpleContent? simpleContent = complexType.ContentModel as XmlSchemaSimpleContent; 355XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel;
System\Xml\Schema\XsdBuilder.cs (5)
1642if ((builder._complexType!.ContentModel != null) || 1708if ((builder._complexType!.ContentModel != null) || 1829if (builder._complexType!.ContentModel != null) 2330if (_complexType!.ContentModel != null) 2386if ((_complexType!.ContentModel != null) ||
System\Xml\Serialization\ImportContext.cs (2)
264if (ct.ContentModel != null) 266XmlSchemaContent? content = ct.ContentModel.Content;
System\Xml\Serialization\SchemaObjectWriter.cs (4)
818if (o.@ContentModel is XmlSchemaComplexContent) 820Write41_XmlSchemaComplexContent((XmlSchemaComplexContent)o.@ContentModel); 822else if (o.@ContentModel is XmlSchemaSimpleContent) 824Write36_XmlSchemaSimpleContent((XmlSchemaSimpleContent)o.@ContentModel);
System\Xml\Serialization\XmlSchemaExporter.cs (17)
668if (type.ContentModel != null) 670if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 671attributes = ((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Attributes; 672else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 673attributes = ((XmlSchemaComplexContentExtension)type.ContentModel.Content).Attributes; 674else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 675attributes = ((XmlSchemaSimpleContentExtension)type.ContentModel.Content).Attributes; 677throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name)); 697if (type.ContentModel == null) 703XmlSchemaContent? content = type.ContentModel.Content; 713else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 1062if (type.ContentModel != null) 1064if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 1065((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Particle = seq; 1066else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 1067((XmlSchemaComplexContentExtension)type.ContentModel.Content).Particle = seq; 1069throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name));
System\Xml\Serialization\XmlSchemaImporter.cs (5)
702if (ct.ContentModel != null && ct.ContentModel is XmlSchemaComplexContent) 704mixed = ((XmlSchemaComplexContent)ct.ContentModel).IsMixed; 717if (ct.ContentModel != null) 719XmlSchemaContent? content = ct.ContentModel.Content;