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