21 writes to SchemaTypeName
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaExporter.cs (2)
139
element.
SchemaTypeName
= AnytypeQualifiedName;
192
element.
SchemaTypeName
= dataContract.XmlName;
System.Private.Xml (19)
System\Xml\Schema\Inference\Infer.cs (11)
679
xse.
SchemaTypeName
= ST_string;
733
xse.
SchemaTypeName
= ST_string;
760
xse.
SchemaTypeName
= ST_string;
846
xse.
SchemaTypeName
= ST_string;
855
xse.
SchemaTypeName
= RefineSimpleType(_xtr.Value, ref TypeFlags);
860
xse.
SchemaTypeName
= ST_string;
878
xse.
SchemaTypeName
= RefineSimpleType(_xtr.Value, ref TypeFlags); //simple type
883
xse.
SchemaTypeName
= ST_string;
908
xse.
SchemaTypeName
= XmlQualifiedName.Empty;
1250
xse.
SchemaTypeName
= XmlQualifiedName.Empty; //re-set the name
2404
newElement.
SchemaTypeName
= copyElement.SchemaTypeName;
System\Xml\Schema\XmlSchemaValidator.cs (1)
2123
xsiElement.
SchemaTypeName
= XmlQualifiedName.Empty; //Reset typeName on element as this might be different
System\Xml\Schema\XsdBuilder.cs (1)
1400
builder._element!.
SchemaTypeName
= builder.ParseQName(value, "type");
System\Xml\Serialization\XmlSchemaExporter.cs (4)
379
element.
SchemaTypeName
= ExportPrimitiveMapping(pm, ns);
486
element.
SchemaTypeName
= serializableMapping.XsiType!;
643
element.
SchemaTypeName
= new XmlQualifiedName(type.Name, mapping.Namespace);
1032
if (element != null) element.
SchemaTypeName
= qname;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
158
element.
SchemaTypeName
= typeName;
233
element.
SchemaTypeName
= member.MemberType;
58 references to SchemaTypeName
System.Data.Common (8)
System\Data\XMLSchema.cs (8)
1586
table.TypeName = node.
SchemaTypeName
;
1936
string _type = isAttr ? attr!.SchemaTypeName.Name : el!.
SchemaTypeName
.Name;
1937
string _typeNs = isAttr ? attr!.SchemaTypeName.Namespace : el!.
SchemaTypeName
.Namespace;
1950
typeNode = (XmlSchemaAnnotated?)_schemaTypes![isAttr ? ((XmlSchemaAttribute)node).SchemaTypeName : ((XmlSchemaElement)node).
SchemaTypeName
];
2244
strType = ((XmlSchemaElement)typeNode).
SchemaTypeName
.Name;
2374
strType = el.
SchemaTypeName
.Name;
2382
type = ParseDataType(el.
SchemaTypeName
.Name);
2420
strType = ((XmlSchemaElement)typeNode).
SchemaTypeName
.Name;
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\SchemaExporter.cs (1)
194
if (element.
SchemaTypeName
.Namespace.Equals(Globals.SerializationNamespace))
System\Runtime\Serialization\SchemaHelper.cs (1)
218
if (schemaObject is XmlSchemaElement schemaElement && schemaElement.
SchemaTypeName
.Equals(typeQName))
System\Runtime\Serialization\SchemaImporter.cs (8)
107
XmlQualifiedName typeName = element.
SchemaTypeName
;
928
XmlQualifiedName elementTypeName = topLevelElement.
SchemaTypeName
;
937
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.TopLevelElementRepresentsDifferentType, topLevelElement.
SchemaTypeName
.Name, topLevelElement.
SchemaTypeName
.Namespace));
971
if (element.
SchemaTypeName
.IsEmpty)
982
XmlQualifiedName memberTypeName = ImportActualType(element.Annotation, element.
SchemaTypeName
, typeName);
1076
if (element.
SchemaTypeName
.IsEmpty)
1099
dataContract.ItemContract = ImportType(element.
SchemaTypeName
);
System.Private.Xml (40)
System\Xml\Schema\Inference\Infer.cs (11)
676
else if (!xse.
SchemaTypeName
.IsEmpty)
757
else if (!xse.
SchemaTypeName
.IsEmpty)
871
TypeFlags = GetSchemaType(xse.
SchemaTypeName
);
905
if (!xse.
SchemaTypeName
.IsEmpty) //BUGBUG, This assumption is wrong
1008
else if (elem.
SchemaTypeName
!= XmlQualifiedName.Empty)
1011
_schemaSet!.GlobalTypes[elem.
SchemaTypeName
] as XmlSchemaType ??
1012
(XmlSchemaType?)XmlSchemaType.GetBuiltInSimpleType(elem.
SchemaTypeName
) ??
1013
(XmlSchemaType?)XmlSchemaType.GetBuiltInComplexType(elem.
SchemaTypeName
);
1239
if (effectiveSchemaType != null && effectiveSchemaType.Datatype != null && !xse.
SchemaTypeName
.IsEmpty)
1247
sce.BaseTypeName = xse.
SchemaTypeName
;
2404
newElement.SchemaTypeName = copyElement.
SchemaTypeName
;
System\Xml\Schema\Preprocessor.cs (4)
1333
if (!element.
SchemaTypeName
.IsEmpty ||
1404
if (!element.
SchemaTypeName
.IsEmpty)
1417
if (!element.
SchemaTypeName
.IsEmpty)
1419
ValidateQNameAttribute(element, "type", element.
SchemaTypeName
);
System\Xml\Schema\SchemaCollectionCompiler.cs (4)
265
if (element!.ElementSchemaType is XmlSchemaComplexType && element.
SchemaTypeName
== XmlQualifiedName.Empty)
2213
else if (!xe.
SchemaTypeName
.IsEmpty)
2215
xe.SetElementType(GetAnySchemaType(xe.
SchemaTypeName
));
2218
throw new XmlSchemaException(SR.Sch_UndeclaredType, xe.
SchemaTypeName
.ToString(), xe);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
1006
if (!element.
SchemaTypeName
.IsEmpty ||
1077
if (!element.
SchemaTypeName
.IsEmpty)
1090
if (!element.
SchemaTypeName
.IsEmpty)
1092
ValidateQNameAttribute(element, "type", element.
SchemaTypeName
);
System\Xml\Schema\SchemaSetCompiler.cs (5)
265
if (localComplexType != null && element.
SchemaTypeName
== XmlQualifiedName.Empty)
1155
if (localComplexType != null && localElement.
SchemaTypeName
== XmlQualifiedName.Empty && localElement.RefName == XmlQualifiedName.Empty)
2672
else if (!xe.
SchemaTypeName
.IsEmpty)
2674
xe.SetElementType(GetAnySchemaType(xe.
SchemaTypeName
));
2677
throw new XmlSchemaException(SR.Sch_UndeclaredType, xe.
SchemaTypeName
.ToString(), xe);
System\Xml\Schema\XmlSchemaComplexType.cs (2)
482
if (oldElem != null && (!oldElem.RefName.IsEmpty || !oldElem.
SchemaTypeName
.IsEmpty ||
531
if (elem != null && (!elem.RefName.IsEmpty || !elem.
SchemaTypeName
.IsEmpty ||
System\Xml\Serialization\ImportContext.cs (2)
379
else if (!el.
SchemaTypeName
.IsEmpty)
381
XmlSchemaType? type = (XmlSchemaType?)_schemas.Find(el.
SchemaTypeName
, typeof(XmlSchemaType), false);
System\Xml\Serialization\Mappings.cs (2)
1254
if (e1.
SchemaTypeName
!= e2.
SchemaTypeName
)
System\Xml\Serialization\SchemaObjectWriter.cs (2)
1010
else if (!o.
SchemaTypeName
.IsEmpty)
1012
WriteAttribute("type", "", o.
SchemaTypeName
);
System\Xml\Serialization\XmlSchemaExporter.cs (1)
487
if (element.
SchemaTypeName
.IsEmpty)
System\Xml\Serialization\XmlSchemaImporter.cs (3)
329
if (!element.
SchemaTypeName
.IsEmpty)
331
mapping = ImportType(element.
SchemaTypeName
, desiredMappingType, baseType, TypeFlags.CanBeElementValue, false)!;
334
object? type = FindType(element.
SchemaTypeName
, TypeFlags.CanBeElementValue);