12 writes to Schema
System.Private.Xml (12)
System\Xml\Schema\Inference\Infer.cs (2)
467
import.
Schema
= xs;
572
import.
Schema
= xs;
System\Xml\Schema\Preprocessor.cs (5)
318
include.
Schema
= Preprocessor.GetBuildInSchema();
353
include.
Schema
= (XmlSchema)obj;
389
include.
Schema
= includedSchema;
415
include.
Schema
= (XmlSchema)_schemaLocations[ruri]!; // Set schema object even for duplicates
638
include.
Schema
= externalSchema; //Reset the schema property to the cloned schema
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
168
include.
Schema
= xsc[importNS]; //Fetch it from the collection
171
include.
Schema
= include.Schema.Clone();
188
subImp.
Schema
= null; //So that the components are not included again
207
include.
Schema
= Preprocessor.GetBuildInSchema();
235
include.
Schema
= parser.XmlSchema;
51 references to Schema
System.Data.Common (2)
System\Data\XMLSchema.cs (2)
243
if (include.
Schema
!= null)
245
CollectElementsAnnotations(include.
Schema
, schemaList);
System.Private.Xml (49)
System\Xml\Schema\Preprocessor.cs (11)
250
if (ext.
Schema
!= null)
252
BuildSchemaList(ext.
Schema
);
271
XmlSchema? includedSchema = include.
Schema
;
354
_schemaLocations.Add(ruri, include.
Schema
);
355
LoadExternals(include.
Schema
);
560
XmlSchema? externalSchema = include.
Schema
;
610
XmlSchema? includedSchema = include.
Schema
;
660
XmlSchema? includedSchema = external.
Schema
;
820
XmlSchema originalSchema = redefine.
Schema
!;
966
if (external.
Schema
!= null)
968
GetIncludedSet(external.
Schema
, includesList);
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
100
if (include.
Schema
!= null)
102
Cleanup(include.
Schema
);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (30)
74
if (include.
Schema
!= null)
76
include.
Schema
.IsPreprocessed = true;
95
if (include.
Schema
!= null)
97
Cleanup(include.
Schema
);
143
if (include.
Schema
!= null)
158
LoadExternals(include.
Schema
, xsc);
169
if (include.
Schema
!= null)
171
include.Schema = include.
Schema
.Clone();
172
if (include.
Schema
.BaseUri != null && _schemaLocations![include.
Schema
.BaseUri] == null)
174
_schemaLocations.Add(include.
Schema
.BaseUri, include.
Schema
.BaseUri);
178
for (int j = 0; j < include.
Schema
.Includes.Count; ++j)
180
XmlSchemaExternal subInc = (XmlSchemaExternal)include.
Schema
.Includes[j];
183
subUri = subImp.BaseUri ?? subImp.
Schema
?.BaseUri;
236
LoadExternals(include.
Schema
!, xsc);
377
else if ((include is XmlSchemaRedefine || include is XmlSchemaInclude) && include.
Schema
== null)
381
if (include.
Schema
!= null)
385
Preprocess(include.
Schema
, schema.TargetNamespace, Compositor.Include);
397
Preprocess(include.
Schema
, ((XmlSchemaImport)include).Namespace, Compositor.Import);
401
Preprocess(include.
Schema
, schema.TargetNamespace, Compositor.Include);
482
if (include.
Schema
!= null)
498
XmlSchema? includedSchema = include.
Schema
;
604
group.Redefined = (XmlSchemaGroup?)redefine.
Schema
!.Groups[group.QualifiedName];
625
attributeGroup.Redefined = (XmlSchemaAttributeGroup?)redefine.
Schema
!.AttributeGroups[attributeGroup.QualifiedName];
646
XmlSchemaType? type = (XmlSchemaType?)redefine.
Schema
!.SchemaTypes[complexType.QualifiedName];
675
XmlSchemaType? type = (XmlSchemaType?)redefine.
Schema
!.SchemaTypes[simpleType.QualifiedName];
698
redefine.
Schema
!.Groups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!);
703
redefine.
Schema
!.AttributeGroups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!);
708
redefine.
Schema
!.SchemaTypes.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!);
System\Xml\Schema\XmlSchema.cs (2)
538
if (ext.
Schema
!= null)
540
GetExternalSchemasList(extList, ext.
Schema
);
System\Xml\Serialization\XmlSchemas.cs (4)
379
if (external.
Schema
!= null)
381
Merge(external.
Schema
);
390
if (external.
Schema
== null)
401
Merge(originals, external.
Schema
);