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