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