15 writes to ContentModel
dotnet-svcutil-lib (15)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (4)
737ct.ContentModel = sc; 834ct.ContentModel = sc; 933ct.ContentModel = null; 1267ct.ContentModel = sc;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (2)
441complexType.ContentModel = newSimpleContent; 472complexType.ContentModel = newComplexContent;
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (2)
1654builder._complexType.ContentModel = builder._complexContent; 1720builder._complexType.ContentModel = builder._simpleContent;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (2)
263type.ContentModel = model; 337type.ContentModel = model;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (3)
1041type.ContentModel = model; 1050type.ContentModel = model; 1145type.ContentModel = model;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (2)
11378o.@ContentModel = Read58_XmlSchemaComplexContent(false, true); 11383o.@ContentModel = Read61_XmlSchemaSimpleContent(false, true);
100 references to ContentModel
dotnet-svcutil-lib (100)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (8)
687else if (null != ct.ContentModel) 727if (null != ct.ContentModel) 768else if (null != ct.ContentModel) 806else if (null != ct.ContentModel) 929if (ct.ContentModel != null) 1000XmlSchemaSimpleContent sc = ct.ContentModel as XmlSchemaSimpleContent; 1277if (ct.ContentModel != null) 1422if (ct.ContentModel != null)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (10)
1145if (ctype.ContentModel != null) 1148if (ctype.ContentModel is XmlSchemaComplexContent) 1150XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.ContentModel; 1162XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.ContentModel; 1730if (complexType.ContentModel != null) 1732SetParent(complexType.ContentModel, complexType); //SimpleContent / complexCotent 1733PreprocessAnnotation(complexType.ContentModel); 1739if (complexType.ContentModel is XmlSchemaSimpleContent) 1741XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.ContentModel; 1796XmlSchemaComplexContent content = (XmlSchemaComplexContent)complexType.ContentModel;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (8)
317if (complexType.ContentModel != null) 319if (complexType.ContentModel is XmlSchemaSimpleContent) 321XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.ContentModel; 335XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel; 706if (complexType.ContentModel != null) 708if (complexType.ContentModel is XmlSchemaSimpleContent) 710XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.ContentModel; 723XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (10)
794if (ctype.ContentModel != null) 797if (ctype.ContentModel is XmlSchemaComplexContent) 799XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.ContentModel; 811XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.ContentModel; 1373if (complexType.ContentModel != null) 1375SetParent(complexType.ContentModel, complexType); //SimpleContent / complexCotent 1376PreprocessAnnotation(complexType.ContentModel); 1382if (complexType.ContentModel is XmlSchemaSimpleContent) 1384XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.ContentModel; 1439XmlSchemaComplexContent content = (XmlSchemaComplexContent)complexType.ContentModel;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (8)
303if (complexType.ContentModel != null) 305if (complexType.ContentModel is XmlSchemaSimpleContent) 307XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.ContentModel; 321XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel; 793if (complexType.ContentModel != null) 795if (complexType.ContentModel is XmlSchemaSimpleContent) 797XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.ContentModel; 810XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (3)
417if (complexType.ContentModel != null) 419XmlSchemaSimpleContent simpleContent = complexType.ContentModel as XmlSchemaSimpleContent; 445XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.ContentModel;
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (5)
1647if ((builder._complexType.ContentModel != null) || 1713if ((builder._complexType.ContentModel != null) || 1834if (builder._complexType.ContentModel != null) 2335if (_complexType.ContentModel != null) 2391if ((_complexType.ContentModel != null) ||
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (2)
346if (ct.ContentModel != null) 348XmlSchemaContent content = ct.ContentModel.Content;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (4)
819if (o.@ContentModel is XmlSchemaComplexContent) 821Write41_XmlSchemaComplexContent((XmlSchemaComplexContent)o.@ContentModel); 823else if (o.@ContentModel is XmlSchemaSimpleContent) 825Write36_XmlSchemaSimpleContent((XmlSchemaSimpleContent)o.@ContentModel);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (6)
382if (type.ContentModel != null) 384if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 385((XmlSchemaComplexContentExtension)type.ContentModel.Content).Particle = seq; 386else if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 387((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Particle = seq; 389throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (4)
368else if (type.ContentModel != null && type.ContentModel is XmlSchemaComplexContent) 370XmlSchemaComplexContent model = (XmlSchemaComplexContent)type.ContentModel; 468XmlSchemaContentModel model = ((XmlSchemaComplexType)type).ContentModel;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (17)
711if (type.ContentModel != null) 713if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 714attributes = ((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Attributes; 715else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 716attributes = ((XmlSchemaComplexContentExtension)type.ContentModel.Content).Attributes; 717else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 718attributes = ((XmlSchemaSimpleContentExtension)type.ContentModel.Content).Attributes; 720throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 740if (type.ContentModel == null) 746XmlSchemaContent content = type.ContentModel.Content; 757else if (type.ContentModel.Content is XmlSchemaSimpleContentExtension) 1110if (type.ContentModel != null) 1112if (type.ContentModel.Content is XmlSchemaComplexContentRestriction) 1113((XmlSchemaComplexContentRestriction)type.ContentModel.Content).Particle = seq; 1114else if (type.ContentModel.Content is XmlSchemaComplexContentExtension) 1115((XmlSchemaComplexContentExtension)type.ContentModel.Content).Particle = seq; 1117throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (5)
803if (ct.ContentModel != null && ct.ContentModel is XmlSchemaComplexContent) 805mixed = ((XmlSchemaComplexContent)ct.ContentModel).IsMixed; 818if (ct.ContentModel != null) 820XmlSchemaContent content = ct.ContentModel.Content;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (4)
320if (complexType.ContentModel != null) 322XmlSchemaComplexContent complexContent = complexType.ContentModel as XmlSchemaComplexContent; 453if (complexType.ContentModel == null) 460XmlSchemaContentModel contentModel = complexType.ContentModel;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (6)
3971if (o.@ContentModel is Microsoft.Xml.Schema.XmlSchemaSimpleContent) 3973Write61_XmlSchemaSimpleContent(@"simpleContent", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleContent)o.@ContentModel), false, false); 3975else if (o.@ContentModel is Microsoft.Xml.Schema.XmlSchemaComplexContent) 3977Write58_XmlSchemaComplexContent(@"complexContent", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaComplexContent)o.@ContentModel), false, false); 3981if (o.@ContentModel != null) 3983throw CreateUnknownTypeException(o.@ContentModel);