2 overrides of Content
System.Private.Xml (2)
System\Xml\Schema\XmlSchemaComplexContent.cs (1)
23
public override XmlSchemaContent?
Content
System\Xml\Schema\XmlSchemaSimpleContent.cs (1)
14
public override XmlSchemaContent?
Content
1 write to Content
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
498
type.ContentModel.
Content
= extension;
24 references to Content
System.Private.Xml (24)
System\Xml\Schema\XmlSchemaComplexType.cs (8)
277
if (_contentModel.
Content
is XmlSchemaComplexContentRestriction)
278
return ((XmlSchemaComplexContentRestriction)_contentModel.
Content
).BaseTypeName;
279
else if (_contentModel.
Content
is XmlSchemaComplexContentExtension)
280
return ((XmlSchemaComplexContentExtension)_contentModel.
Content
).BaseTypeName;
281
else if (_contentModel.
Content
is XmlSchemaSimpleContentRestriction)
282
return ((XmlSchemaSimpleContentRestriction)_contentModel.
Content
).BaseTypeName;
283
else if (_contentModel.
Content
is XmlSchemaSimpleContentExtension)
284
return ((XmlSchemaSimpleContentExtension)_contentModel.
Content
).BaseTypeName;
System\Xml\Serialization\ImportContext.cs (1)
273
XmlSchemaContent? content = ct.ContentModel.
Content
;
System\Xml\Serialization\XmlSchemaExporter.cs (14)
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));
707
XmlSchemaContent? content = type.ContentModel.
Content
;
717
else if (type.ContentModel.
Content
is XmlSchemaSimpleContentExtension)
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 (1)
719
XmlSchemaContent? content = ct.ContentModel.
Content
;