20 writes to @ContentModel
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
492
type.
ContentModel
= new XmlSchemaComplexContent();
System.ServiceModel (1)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
93
innerType.
ContentModel
= innerContent;
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\SchemaUtility.cs (2)
229
appSequenceType.
ContentModel
= complexContent;
506
scopesType.
ContentModel
= scopesTypeContent;
System.Web.Services (3)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
101
type.
ContentModel
= model;
System\Web\Services\Description\ServiceDescriptionSerializer.cs (2)
9197
o.
@ContentModel
= Read58_XmlSchemaComplexContent(false, true);
9201
o.
@ContentModel
= Read61_XmlSchemaSimpleContent(false, true);
System.Xml (13)
System\Xml\Schema\Inference\Infer.cs (4)
735
ct.
ContentModel
= sc;
832
ct.
ContentModel
= sc;
931
ct.
ContentModel
= null;
1258
ct.
ContentModel
= sc;
System\Xml\Schema\XmlSchemaComplexType.cs (2)
383
complexType.
ContentModel
= newSimpleContent;
409
complexType.
ContentModel
= newComplexContent;
System\Xml\Schema\XsdBuilder.cs (2)
1533
builder.complexType.
ContentModel
= builder.complexContent;
1591
builder.complexType.
ContentModel
= builder.simpleContent;
System\Xml\Serialization\SoapSchemaExporter.cs (2)
229
type.
ContentModel
= model;
293
type.
ContentModel
= model;
System\Xml\Serialization\XmlSchemaExporter.cs (3)
888
type.
ContentModel
= model;
896
type.
ContentModel
= model;
973
type.
ContentModel
= model;
128 references to @ContentModel
System.Data (15)
fx\src\data\System\Data\XMLSchema.cs (15)
528
if (ct.
ContentModel
is XmlSchemaSimpleContent){
529
XmlSchemaAnnotated cContent = ((XmlSchemaSimpleContent) (ct.
ContentModel
)).Content;
884
if (ct.
ContentModel
!= null) {
893
if (ct.
ContentModel
is XmlSchemaComplexContent) {
894
XmlSchemaAnnotated cContent = ((XmlSchemaComplexContent) (ct.
ContentModel
)).Content;
907
HandleSimpleContentColumn(ccExtension.BaseTypeName.ToString(), table, isBase, ct.
ContentModel
.UnhandledAttributes, isNillable);
910
HandleSimpleContentColumn(ccExtension.BaseTypeName.Name, table, isBase, ct.
ContentModel
.UnhandledAttributes, isNillable);
928
Debug.Assert(ct.
ContentModel
is XmlSchemaSimpleContent, "expected simpleContent or complexContent");
929
XmlSchemaAnnotated cContent = ((XmlSchemaSimpleContent) (ct.
ContentModel
)).Content;
938
HandleSimpleTypeSimpleContentColumn((XmlSchemaSimpleType)ct.BaseXmlSchemaType, ccExtension.BaseTypeName.Name, table, isBase, ct.
ContentModel
.UnhandledAttributes, isNillable);
966
if (ct.
ContentModel
!= null) {
967
if (ct.
ContentModel
is XmlSchemaComplexContent) {
968
XmlSchemaAnnotated cContent = ((XmlSchemaComplexContent) (ct.
ContentModel
)).Content;
976
Debug.Assert(ct.
ContentModel
is XmlSchemaSimpleContent, "expected simpleContent or complexContent");
1271
bool isSimpleContent = ((node.ElementSchemaType.BaseXmlSchemaType != null) ||(ct != null && ct.
ContentModel
is XmlSchemaSimpleContent));
System.Runtime.Serialization (5)
System\Runtime\Serialization\SchemaExporter.cs (1)
493
type.
ContentModel
.Content = extension;
System\Runtime\Serialization\SchemaImporter.cs (4)
321
if (complexType.
ContentModel
!= null)
323
XmlSchemaComplexContent complexContent = complexType.
ContentModel
as XmlSchemaComplexContent;
454
if (complexType.
ContentModel
== null)
461
XmlSchemaContentModel contentModel = complexType.
ContentModel
;
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (4)
267
if (complexType.
ContentModel
!= null)
269
InvokeHandler(complexType.
ContentModel
, context);
415
if (complexType.
ContentModel
!= null)
417
InvokeHandler(complexType.
ContentModel
, context);
System.Web.Extensions (1)
Script\Services\WebServiceTypeData.cs (1)
118
if (type.
ContentModel
== null) {
System.Web.Services (13)
System\Web\Services\Description\HttpProtocolImporter.cs (7)
112
if (type.
ContentModel
== null) return false;
113
if (type.
ContentModel
.Content == null) throw new ArgumentException(Res.GetString(Res.Missing2, type.Name, type.
ContentModel
.GetType().Name), "part");
114
if (type.
ContentModel
.Content is XmlSchemaComplexContentExtension) {
115
return ((XmlSchemaComplexContentExtension)type.
ContentModel
.Content).BaseTypeName == new XmlQualifiedName(Soap.ArrayType, Soap.Encoding);
117
else if (type.
ContentModel
.Content is XmlSchemaComplexContentRestriction) {
118
return ((XmlSchemaComplexContentRestriction)type.
ContentModel
.Content).BaseTypeName == new XmlQualifiedName(Soap.ArrayType, Soap.Encoding);
System\Web\Services\Description\ServiceDescriptionSerializer.cs (6)
3143
if (o.
@ContentModel
is global::System.Xml.Schema.XmlSchemaSimpleContent) {
3144
Write61_XmlSchemaSimpleContent(@"simpleContent", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaSimpleContent)o.
@ContentModel
), false, false);
3146
else if (o.
@ContentModel
is global::System.Xml.Schema.XmlSchemaComplexContent) {
3147
Write58_XmlSchemaComplexContent(@"complexContent", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaComplexContent)o.
@ContentModel
), false, false);
3150
if (o.
@ContentModel
!= null) {
3151
throw CreateUnknownTypeException(o.
@ContentModel
);
System.Xml (90)
System\Xml\Schema\Inference\Infer.cs (8)
686
else if (null != ct.
ContentModel
)
725
if (null != ct.
ContentModel
)
766
else if (null != ct.
ContentModel
)
804
else if (null!=ct.
ContentModel
)
927
if (ct.
ContentModel
!=null)
999
XmlSchemaSimpleContent sc = ct.
ContentModel
as XmlSchemaSimpleContent;
1268
if (ct.
ContentModel
!= null)
1406
if (ct.
ContentModel
!= null) {
System\Xml\Schema\Preprocessor.cs (10)
949
if (ctype.
ContentModel
!= null) {
951
if (ctype.
ContentModel
is XmlSchemaComplexContent) {
952
XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.
ContentModel
;
961
XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.
ContentModel
;
1406
if (complexType.
ContentModel
!= null) {
1407
SetParent(complexType.
ContentModel
, complexType); //SimpleContent / complexCotent
1408
PreprocessAnnotation(complexType.
ContentModel
);
1413
if (complexType.
ContentModel
is XmlSchemaSimpleContent) {
1414
XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.
ContentModel
;
1457
XmlSchemaComplexContent content = (XmlSchemaComplexContent)complexType.
ContentModel
;
System\Xml\Schema\SchemaCollectionCompiler.cs (8)
256
if (complexType.
ContentModel
!= null) { //simpleContent or complexContent
257
if (complexType.
ContentModel
is XmlSchemaSimpleContent) {
258
XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.
ContentModel
;
269
XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.
ContentModel
;
565
if (complexType.
ContentModel
!= null) { //simpleContent or complexContent
566
if (complexType.
ContentModel
is XmlSchemaSimpleContent) {
567
XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.
ContentModel
;
577
XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.
ContentModel
;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (10)
641
if (ctype.
ContentModel
!= null) {
643
if (ctype.
ContentModel
is XmlSchemaComplexContent) {
644
XmlSchemaComplexContent content = (XmlSchemaComplexContent)ctype.
ContentModel
;
653
XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)ctype.
ContentModel
;
1092
if (complexType.
ContentModel
!= null) {
1093
SetParent(complexType.
ContentModel
, complexType); //SimpleContent / complexCotent
1094
PreprocessAnnotation(complexType.
ContentModel
);
1099
if (complexType.
ContentModel
is XmlSchemaSimpleContent) {
1100
XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.
ContentModel
;
1143
XmlSchemaComplexContent content = (XmlSchemaComplexContent)complexType.
ContentModel
;
System\Xml\Schema\SchemaSetCompiler.cs (8)
244
if (complexType.
ContentModel
!= null) { //simpleContent or complexContent
245
if (complexType.
ContentModel
is XmlSchemaSimpleContent) {
246
XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.
ContentModel
;
257
XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.
ContentModel
;
633
if (complexType.
ContentModel
!= null) { //simpleContent or complexContent
634
if (complexType.
ContentModel
is XmlSchemaSimpleContent) {
635
XmlSchemaSimpleContent simpleContent = (XmlSchemaSimpleContent)complexType.
ContentModel
;
645
XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.
ContentModel
;
System\Xml\Schema\XmlSchemaComplexType.cs (3)
362
if (complexType.
ContentModel
!= null) { //simpleContent or complexContent
364
XmlSchemaSimpleContent simpleContent = complexType.
ContentModel
as XmlSchemaSimpleContent;
386
XmlSchemaComplexContent complexContent = (XmlSchemaComplexContent)complexType.
ContentModel
;
System\Xml\Schema\XsdBuilder.cs (5)
1527
if ( (builder.complexType.
ContentModel
!= null) ||
1585
if ( (builder.complexType.
ContentModel
!= null) ||
1692
if (builder.complexType.
ContentModel
!= null) {
2134
if (complexType.
ContentModel
!= null) {
2181
if ( (complexType.
ContentModel
!= null) ||
System\Xml\Serialization\ImportContext.cs (2)
296
if (ct.
ContentModel
!= null) {
297
XmlSchemaContent content = ct.
ContentModel
.Content;
System\Xml\Serialization\SchemaObjectWriter.cs (4)
680
if (o.
@ContentModel
is XmlSchemaComplexContent) {
681
Write41_XmlSchemaComplexContent((XmlSchemaComplexContent)o.
@ContentModel
);
683
else if (o.
@ContentModel
is XmlSchemaSimpleContent) {
684
Write36_XmlSchemaSimpleContent((XmlSchemaSimpleContent)o.
@ContentModel
);
System\Xml\Serialization\SoapSchemaExporter.cs (6)
330
if (type.
ContentModel
!= null) {
331
if (type.
ContentModel
.Content is XmlSchemaComplexContentExtension)
332
((XmlSchemaComplexContentExtension)type.
ContentModel
.Content).Particle = seq;
333
else if (type.
ContentModel
.Content is XmlSchemaComplexContentRestriction)
334
((XmlSchemaComplexContentRestriction)type.
ContentModel
.Content).Particle = seq;
336
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.
ContentModel
.Content.GetType().Name));
System\Xml\Serialization\SoapSchemaImporter.cs (4)
333
else if (type.
ContentModel
!= null && type.
ContentModel
is XmlSchemaComplexContent) {
334
XmlSchemaComplexContent model = (XmlSchemaComplexContent)type.
ContentModel
;
419
XmlSchemaContentModel model = ((XmlSchemaComplexType)type).
ContentModel
;
System\Xml\Serialization\XmlSchemaExporter.cs (17)
610
if (type.
ContentModel
!= null) {
611
if (type.
ContentModel
.Content is XmlSchemaComplexContentRestriction)
612
attributes = ((XmlSchemaComplexContentRestriction)type.
ContentModel
.Content).Attributes;
613
else if (type.
ContentModel
.Content is XmlSchemaComplexContentExtension)
614
attributes = ((XmlSchemaComplexContentExtension)type.
ContentModel
.Content).Attributes;
615
else if (type.
ContentModel
.Content is XmlSchemaSimpleContentExtension)
616
attributes = ((XmlSchemaSimpleContentExtension)type.
ContentModel
.Content).Attributes;
618
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.
ContentModel
.Content.GetType().Name));
636
if (type.
ContentModel
== null) {
640
XmlSchemaContent content = type.
ContentModel
.Content;
649
else if (type.
ContentModel
.Content is XmlSchemaSimpleContentExtension) {
946
if (type.
ContentModel
!= null) {
947
if (type.
ContentModel
.Content is XmlSchemaComplexContentRestriction)
948
((XmlSchemaComplexContentRestriction)type.
ContentModel
.Content).Particle = seq;
949
else if (type.
ContentModel
.Content is XmlSchemaComplexContentExtension)
950
((XmlSchemaComplexContentExtension)type.
ContentModel
.Content).Particle = seq;
952
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.
ContentModel
.Content.GetType().Name));
System\Xml\Serialization\XmlSchemaImporter.cs (5)
702
if (ct.
ContentModel
!= null && ct.
ContentModel
is XmlSchemaComplexContent) {
703
mixed = ((XmlSchemaComplexContent)ct.
ContentModel
).IsMixed;
714
if (ct.
ContentModel
!= null) {
715
XmlSchemaContent content = ct.
ContentModel
.Content;