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)
266XmlSchemaContent? content = ct.ContentModel.Content;
System\Xml\Serialization\XmlSchemaExporter.cs (14)
670if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 671attributes = ((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Attributes; 672else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 673attributes = ((XmlSchemaComplexContentExtension)type.ContentModel.Content).Attributes; 674else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 675attributes = ((XmlSchemaSimpleContentExtension)type.ContentModel.Content).Attributes; 677throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name)); 703XmlSchemaContent? content = type.ContentModel.Content; 713else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 1064if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 1065((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Particle = seq; 1066else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 1067((XmlSchemaComplexContentExtension)type.ContentModel.Content).Particle = seq; 1069throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name));
System\Xml\Serialization\XmlSchemaImporter.cs (1)
719XmlSchemaContent? content = ct.ContentModel.Content;