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