14 instantiations of XmlSchemaSet
Microsoft.DotNet.XliffTasks (1)
Model\XlfDocument.cs (1)
315XmlSchemaSet schemas = new();
System.Data.Common (2)
System\Data\DataSet.cs (1)
1818XmlSchemaSet sSet = new XmlSchemaSet();
System\Data\DataTable.cs (1)
6416XmlSchemaSet sSet = new XmlSchemaSet();
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaExporter.cs (1)
597XmlSchemaSet schemas = new XmlSchemaSet();
System\Runtime\Serialization\XsdDataContractExporter.cs (1)
78_schemas = new XmlSchemaSet();
System.Private.Xml (9)
System\Xml\Core\XmlReaderSettings.cs (1)
277get => _schemas ??= new XmlSchemaSet();
System\Xml\Dom\XmlDocument.cs (1)
428get => _schemas ??= new XmlSchemaSet(NameTable);
System\Xml\Schema\Inference\Infer.cs (2)
166return InferSchema1(instanceDocument, new XmlSchemaSet(_nametable)); 171schemas ??= new XmlSchemaSet(_nametable);
System\Xml\Schema\XmlSchemaValidator.cs (2)
175_schemaSet = new XmlSchemaSet(nameTable); 1808XmlSchemaSet localSet = new XmlSchemaSet(); //Avoiding cost of incremental compilation checks by compiling schema in a separate set and adding compiled set
System\Xml\Serialization\Mappings.cs (1)
1277_schemas ??= new XmlSchemaSet();
System\Xml\Serialization\XmlSchemas.cs (2)
70_schemaSet = new XmlSchemaSet(); 636_schemaSet = new XmlSchemaSet();
144 references to XmlSchemaSet
Microsoft.DotNet.XliffTasks (4)
Model\XlfDocument.cs (4)
24private static XmlSchemaSet s_schemaSet; 301XmlSchemaSet schemas = GetSchemaSet(); 306private static XmlSchemaSet GetSchemaSet() 315XmlSchemaSet schemas = new();
netstandard (1)
netstandard.cs (1)
2358[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaSet))]
System.Data.Common (24)
System\Data\DataSet.cs (3)
1818XmlSchemaSet sSet = new XmlSchemaSet(); 2416XmlSchemaSet schemaSet = infer.InferSchema(xnr); 3485public static XmlSchemaComplexType GetDataSetSchema(XmlSchemaSet? schemaSet)
System\Data\DataTable.cs (2)
6416XmlSchemaSet sSet = new XmlSchemaSet(); 6687public static XmlSchemaComplexType GetDataTableSchema(XmlSchemaSet? schemaSet)
System\Data\SQLTypes\SQLBinary.cs (1)
458public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLBoolean.cs (1)
508public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLByte.cs (1)
518public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLBytes.cs (1)
569public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLChars.cs (1)
522public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLDateTime.cs (1)
672public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLDecimal.cs (1)
3384public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLDouble.cs (1)
434public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLGuid.cs (1)
322public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLInt16.cs (1)
519public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLInt32.cs (1)
534public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLInt64.cs (1)
593public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLMoney.cs (1)
591public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLSingle.cs (1)
444public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SQLString.cs (1)
950public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\SQLTypes\SqlXml.cs (1)
255public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
System\Data\XMLSchema.cs (3)
133private XmlSchemaSet? _schemaSet; 644public void LoadSchema(XmlSchemaSet schemaSet, DataTable dt) 652public void LoadSchema(XmlSchemaSet schemaSet, DataSet ds)
System.Private.DataContractSerialization (31)
System\Runtime\Serialization\DataContractSet.cs (2)
651public void ImportSchemaSet(XmlSchemaSet schemaSet, IEnumerable<XmlQualifiedName>? typeNames, bool importXmlDataType) 659public List<XmlQualifiedName> ImportSchemaSet(XmlSchemaSet schemaSet, IEnumerable<XmlSchemaElement> elements, bool importXmlDataType)
System\Runtime\Serialization\SchemaExporter.cs (11)
22private readonly XmlSchemaSet _schemas; 26internal SchemaExporter(XmlSchemaSet schemas, DataContractSet dataContractSet) 32private XmlSchemaSet Schemas 551private static void ReprocessAll(XmlSchemaSet schemas)// and remove duplicate items 597XmlSchemaSet schemas = new XmlSchemaSet(); 606private static bool InvokeSchemaProviderMethod(Type clrType, XmlSchemaSet schemas, out XmlQualifiedName xmlName, out XmlSchemaType? xsdType, out bool hasRoot) 632MethodInfo? getMethod = clrType.GetMethod(methodName, /*BindingFlags.DeclaredOnly |*/ BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public, new Type[] { typeof(XmlSchemaSet) }); 696XmlSchemaSet schemas, XmlQualifiedName xmlName) 712internal static void AddDefaultXmlType(XmlSchemaSet schemas, string localName, string ns) 773private static void AddDefaultDatasetType(XmlSchemaSet schemas, string localName, string ns) 788private static void AddDefaultTypedDatasetType(XmlSchemaSet schemas, XmlSchema datasetSchema, string localName, string ns)
System\Runtime\Serialization\SchemaHelper.cs (7)
61internal static XmlSchemaType? GetSchemaType(XmlSchemaSet schemas, XmlQualifiedName typeQName, out XmlSchema? outSchema) 93internal static XmlSchemaElement? GetSchemaElement(XmlSchemaSet schemas, XmlQualifiedName elementQName, out XmlSchema? outSchema) 115internal static XmlSchema GetSchema(string ns, XmlSchemaSet schemas) 130private static XmlSchema CreateSchema(string ns, XmlSchemaSet schemas) 174internal static XmlSchema? GetSchemaWithType(SchemaObjectDictionary schemaInfo, XmlSchemaSet schemas, XmlQualifiedName typeName) 194internal static XmlSchema? GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas) 210internal static XmlQualifiedName? GetGlobalElementDeclaration(XmlSchemaSet schemas, XmlQualifiedName typeQName, out bool isNullable)
System\Runtime\Serialization\SchemaImporter.cs (3)
25private readonly XmlSchemaSet _schemaSet; 35internal SchemaImporter(XmlSchemaSet schemas, IEnumerable<XmlQualifiedName>? typeNames, IEnumerable<XmlSchemaElement>? elements, DataContractSet dataContractSet, bool importXmlDataType) 133internal static void CompileSchemaSet(XmlSchemaSet schemaSet)
System\Runtime\Serialization\XmlSerializableServices.cs (1)
66public static void AddDefaultSchema(XmlSchemaSet schemas, XmlQualifiedName typeQName)
System\Runtime\Serialization\XsdDataContractExporter.cs (7)
27/// The <see cref="XsdDataContractExporter"/> generates an <see cref="XmlSchemaSet"/> object that contains the collection of schemas. 33private XmlSchemaSet? _schemas; 46/// <param name="schemas">An <see cref="XmlSchemaSet"/> that contains the schemas to be exported.</param> 47public XsdDataContractExporter(XmlSchemaSet? schemas) 64public XmlSchemaSet Schemas 68XmlSchemaSet schemaSet = GetSchemaSet(); 74private XmlSchemaSet GetSchemaSet()
System.Private.Xml (43)
System\Xml\Core\XmlReaderSettings.cs (2)
31private XmlSchemaSet? _schemas; 275public XmlSchemaSet Schemas
System\Xml\Dom\DocumentSchemaValidator.cs (2)
22private readonly XmlSchemaSet _schemas; 57public DocumentSchemaValidator(XmlDocument ownerDocument, XmlSchemaSet schemas, ValidationEventHandler? eventHandler)
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1243public override bool CheckValidity(XmlSchemaSet schemas, ValidationEventHandler validationEventHandler)
System\Xml\Dom\XmlDocument.cs (2)
81private XmlSchemaSet? _schemas; // schemas associated with the cache 426public XmlSchemaSet Schemas
System\Xml\Schema\ContentValidator.cs (7)
1002public virtual ArrayList? ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 1007public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles) 1012public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles, bool global) 1653public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 1799public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 2079public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 2209public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet)
System\Xml\Schema\Inference\Infer.cs (6)
105private XmlSchemaSet? _schemaSet; 164public XmlSchemaSet InferSchema(XmlReader instanceDocument) 169public XmlSchemaSet InferSchema(XmlReader instanceDocument, XmlSchemaSet schemas) 175internal XmlSchemaSet InferSchema1(XmlReader instanceDocument, XmlSchemaSet schemas)
System\Xml\Schema\SchemaSetCompiler.cs (2)
35public bool Execute(XmlSchemaSet schemaSet, SchemaInfo schemaCompiledInfo) 174internal void ImportAllCompiledSchemas(XmlSchemaSet schemaSet)
System\Xml\Schema\XmlSchemaAttribute.cs (1)
117internal XmlReader? Validate(XmlReader reader, XmlResolver? resolver, XmlSchemaSet schemaSet, ValidationEventHandler valEventHandler)
System\Xml\Schema\XmlSchemaElement.cs (1)
193internal XmlReader? Validate(XmlReader reader, XmlResolver? resolver, XmlSchemaSet schemaSet, ValidationEventHandler valEventHandler)
System\Xml\Schema\XmlSchemaSet.cs (2)
297public void Add(XmlSchemaSet schemas) 1102internal void CopyFromCompiledSet(XmlSchemaSet otherSet)
System\Xml\Schema\XmlSchemaType.cs (1)
207internal XmlReader? Validate(XmlReader reader, XmlResolver? resolver, XmlSchemaSet schemaSet, ValidationEventHandler valEventHandler)
System\Xml\Schema\XmlSchemaValidator.cs (6)
66private readonly XmlSchemaSet _schemaSet; 162public XmlSchemaValidator(XmlNameTable nameTable, XmlSchemaSet schemas, IXmlNamespaceResolver namespaceResolver, XmlSchemaValidationFlags validationFlags) 1096internal XmlSchemaSet SchemaSet 1808XmlSchemaSet localSet = new XmlSchemaSet(); //Avoiding cost of incremental compilation checks by compiling schema in a separate set and adding compiled set 2510internal static void ElementValidationError(XmlQualifiedName name, ValidationState context, ValidationEventHandler? eventHandler, object sender, string? sourceUri, int lineNo, int linePos, XmlSchemaSet? schemaSet) 2568internal static void CompleteValidationError(ValidationState context, ValidationEventHandler? eventHandler, object sender, string? sourceUri, int lineNo, int linePos, XmlSchemaSet? schemaSet)
System\Xml\Serialization\Mappings.cs (3)
1047private XmlSchemaSet? _schemas; 1065internal SerializableMapping(XmlQualifiedName xsiType, XmlSchemaSet schemas) 1162internal XmlSchemaSet? Schemas
System\Xml\Serialization\XmlReflectionImporter.cs (3)
498MethodInfo? getMethod = getMethod = type.GetMethod(provider.MethodName, /* BindingFlags.DeclaredOnly | */ BindingFlags.Static | BindingFlags.Public, new Type[] { typeof(XmlSchemaSet) }); 500throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodMissing, provider.MethodName, nameof(XmlSchemaSet), type.FullName)); 589XmlSchemaSet schemas = mapping.Schemas!;
System\Xml\Serialization\XmlSchemas.cs (2)
23private XmlSchemaSet? _schemaSet; 64internal XmlSchemaSet SchemaSet
System\Xml\XPath\XPathNavigator.cs (2)
985public virtual bool CheckValidity(XmlSchemaSet schemas, ValidationEventHandler validationEventHandler) 1053private static XmlReader GetValidatingReader(XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent, XmlSchemaType? schemaType, XmlSchemaElement? schemaElement, XmlSchemaAttribute? schemaAttribute)
System.Private.Xml.Linq (14)
System\Xml\Schema\XNodeValidator.cs (14)
17private readonly XmlSchemaSet schemas; 30public XNodeValidator(XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 460/// <param name="schemas">The <see cref="XmlSchemaSet"/> used for validation</param> 464public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 473/// <param name="schemas">The <see cref="XmlSchemaSet"/> used for validation</param> 480public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo) 495/// <param name="schemas">The <see cref="XmlSchemaSet"/> used for validation</param> 499public static void Validate(this XElement source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 511/// <param name="schemas">The <see cref="XmlSchemaSet"/> used for validation</param> 518public static void Validate(this XElement source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo) 534/// <param name="schemas">The <see cref="XmlSchemaSet"/> used for validation</param> 538public static void Validate(this XAttribute source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 550/// <param name="schemas">The <see cref="XmlSchemaSet"/> used for validation</param> 557public static void Validate(this XAttribute source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo)
System.Runtime.Serialization.Schema (25)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1778CodeParameterDeclarationExpression paramDeclaration = new CodeParameterDeclarationExpression(typeof(XmlSchemaSet), "schemas");
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (24)
75/// Transforms the specified set of XML schemas contained in an <see cref="XmlSchemaSet"/> into a <see cref="System.CodeDom.CodeCompileUnit"/>. 77/// <param name="schemas">A <see cref="XmlSchemaSet"/> that contains the schema representations to generate CLR types for.</param> 79public void Import(XmlSchemaSet schemas) 88/// Transforms the specified set of schema types contained in an <see cref="XmlSchemaSet"/> into CLR types generated into a <see cref="System.CodeDom.CodeCompileUnit"/>. 90/// <param name="schemas">A <see cref="XmlSchemaSet"/> that contains the schema representations.</param> 93public void Import(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames) 105/// Transforms the specified XML schema type contained in an <see cref="XmlSchemaSet"/> into a <see cref="System.CodeDom.CodeCompileUnit"/>. 107/// <param name="schemas">A <see cref="XmlSchemaSet"/> that contains the schema representations.</param> 110public void Import(XmlSchemaSet schemas, XmlQualifiedName typeName) 126/// <param name="schemas">An <see cref="XmlSchemaSet"/> that contains the schemas to transform.</param> 130public XmlQualifiedName? Import(XmlSchemaSet schemas, XmlSchemaElement element) 145/// Gets a value that indicates whether the schemas contained in an <see cref="XmlSchemaSet"/> can be transformed into a <see cref="System.CodeDom.CodeCompileUnit"/>. 147/// <param name="schemas">A <see cref="XmlSchemaSet"/> that contains the schemas to transform.</param> 150public bool CanImport(XmlSchemaSet schemas) 159/// Gets a value that indicates whether the specified set of types contained in an <see cref="XmlSchemaSet"/> can be transformed into CLR types generated into a <see cref="System.CodeDom.CodeCompileUnit"/>. 165public bool CanImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames) 177/// Gets a value that indicates whether the schemas contained in an <see cref="XmlSchemaSet"/> can be transformed into a <see cref="System.CodeDom.CodeCompileUnit"/>. 180/// <param name="typeName">The names of the schema types that need to be imported from the <see cref="XmlSchemaSet"/>.</param> 183public bool CanImport(XmlSchemaSet schemas, XmlQualifiedName typeName) 195/// Gets a value that indicates whether a specific schema element contained in an <see cref="XmlSchemaSet"/> can be imported. 197/// <param name="schemas">An <see cref="XmlSchemaSet"/> to import.</param> 201public bool CanImport(XmlSchemaSet schemas, XmlSchemaElement element) 300private IList<XmlQualifiedName>? InternalImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName>? typeNames, ICollection<XmlSchemaElement>? elements) 335private bool InternalCanImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName>? typeNames, ICollection<XmlSchemaElement>? elements)
System.Xml (1)
System.Xml.cs (1)
83[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaSet))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
82[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaSet))]