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)
998type.ContentModel = model; 1007type.ContentModel = model; 1102type.ContentModel = model;
96 references to ContentModel
System.Data.Common (15)
System\Data\XMLSchema.cs (15)
605if (ct.ContentModel is XmlSchemaSimpleContent) 607XmlSchemaAnnotated? cContent = ((XmlSchemaSimpleContent)(ct.ContentModel)).Content; 1048if (ct.ContentModel != null) 1058if (ct.ContentModel is XmlSchemaComplexContent) 1060XmlSchemaAnnotated? cContent = ((XmlSchemaComplexContent)(ct.ContentModel)).Content; 1076HandleSimpleContentColumn(ccExtension.BaseTypeName.ToString(), table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1080HandleSimpleContentColumn(ccExtension.BaseTypeName.Name, table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1102Debug.Assert(ct.ContentModel is XmlSchemaSimpleContent, "expected simpleContent or complexContent"); 1103XmlSchemaAnnotated cContent = ((XmlSchemaSimpleContent)(ct.ContentModel)).Content!; 1114HandleSimpleTypeSimpleContentColumn((XmlSchemaSimpleType)ct.BaseXmlSchemaType, ccExtension.BaseTypeName.Name, table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1145if (ct.ContentModel != null) 1147if (ct.ContentModel is XmlSchemaComplexContent) 1149XmlSchemaAnnotated cContent = ((XmlSchemaComplexContent)(ct.ContentModel)).Content!; 1162Debug.Assert(ct.ContentModel is XmlSchemaSimpleContent, "expected simpleContent or complexContent"); 1483bool 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)
314if (complexType.ContentModel != null) 316if (complexType.ContentModel is XmlSchemaComplexContent complexContent) 449if (complexType.ContentModel == null) 456XmlSchemaContentModel 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)
786if (ctype.ContentModel != null) 789if (ctype.ContentModel is XmlSchemaComplexContent) 791XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.ContentModel; 803XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.ContentModel; 1363if (complexType.ContentModel != null) 1365SetParent(complexType.ContentModel, complexType); //SimpleContent / complexCotent 1366PreprocessAnnotation(complexType.ContentModel); 1370if (complexType.ContentModel is XmlSchemaSimpleContent) 1372XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.ContentModel; 1426XmlSchemaComplexContent 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)
271if (ct.ContentModel != null) 273XmlSchemaContent? 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)
672if (type.ContentModel != null) 674if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 675attributes = ((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Attributes; 676else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 677attributes = ((XmlSchemaComplexContentExtension)type.ContentModel.Content).Attributes; 678else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 679attributes = ((XmlSchemaSimpleContentExtension)type.ContentModel.Content).Attributes; 681throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name)); 701if (type.ContentModel == null) 707XmlSchemaContent? content = type.ContentModel.Content; 717else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 1067if (type.ContentModel != null) 1069if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 1070((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Particle = seq; 1071else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 1072((XmlSchemaComplexContentExtension)type.ContentModel.Content).Particle = seq; 1074throw 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;