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