3 writes to Name
System.Private.Xml (3)
System\Xml\XmlQualifiedName.cs (3)
36Name = name ?? string.Empty; 123Name = name ?? string.Empty; 144Name = nameTable.Add(Name);
655 references to Name
PresentationFramework (16)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
202throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 211throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (2)
178throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 189throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
505throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
203throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
System\Windows\Annotations\Annotation.cs (3)
97if (String.IsNullOrEmpty(annotationType.Name)) 133if (String.IsNullOrEmpty(annotationType.Name)) 217writer.WriteQualifiedName(_typeName.Name, _typeName.Namespace);
System\Windows\Annotations\LocatorPart.cs (3)
51if (String.IsNullOrEmpty(partType.Name)) 368res += $"{TextSelectionProcessor.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.Elements.Item}"; 395res += this.PartType.Name;
System\Windows\Annotations\LocatorPartList.cs (4)
187writer.WriteStartElement(prefix, part.PartType.Name, part.PartType.Namespace); 239Annotation.CheckForNonNamespaceAttribute(reader, part.PartType.Name); 243while (!(XmlNodeType.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName)) 300throw new XmlException(SR.Format(SR.InvalidXmlContent, part.PartType.Name));
System.Data.Common (28)
System\Data\SimpleType.cs (1)
67_baseType = content.BaseTypeName.Name;
System\Data\xmlsaver.cs (3)
1838if (FindTypeNode(typeSchema, table.TypeName.Name) == null) 1841type.SetAttribute(Keywords.NAME, table.TypeName.Name); 1851root.SetAttribute(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name));
System\Data\XMLSchema.cs (24)
547if (((XmlSchemaElement)el).RefName.Name.Length != 0) 756if (sel.RefName.Name.Length != 0) 914if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) || 1074HandleSimpleContentColumn(ccExtension.BaseTypeName.Name, table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1108HandleSimpleTypeSimpleContentColumn((XmlSchemaSimpleType)ct.BaseXmlSchemaType, ccExtension.BaseTypeName.Name, table, isBase, ct.ContentModel.UnhandledAttributes, isNillable); 1275string refer = XmlConvert.DecodeName(keyref.Refer.Name); // check here!!! 1534instanceName = el.Name ?? el.RefName.Name; 1538instanceName = attr.Name ?? attr.RefName.Name; 1928string _type = isAttr ? attr!.SchemaTypeName.Name : el!.SchemaTypeName.Name; 1935_type = isAttr ? attr!.RefName.Name : el!.RefName.Name; 1959if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace != Keywords.XSDNS) 2197strType = attr.SchemaTypeName.Name; 2208type = ParseDataType(attr.SchemaTypeName.Name); 2215if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace != Keywords.XSDNS) 2233strType = ((XmlSchemaElement)typeNode).SchemaTypeName.Name; 2362strType = el.SchemaTypeName.Name; 2370type = ParseDataType(el.SchemaTypeName.Name); 2408strType = ((XmlSchemaElement)typeNode).SchemaTypeName.Name; 2623if (((XmlSchemaElement)el).RefName.Name.Length != 0) 2670if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2737return qualifiedNames[i].Name; 2752if (qualifiedNames[i].Name == prefix)
System.Private.DataContractSerialization (157)
System\Runtime\Serialization\ClassDataContract.cs (7)
627Name = dictionary.Add(XmlName.Name); 684Name = dictionary.Add(XmlName.Name); 727XmlName = new XmlQualifiedName(GetXmlNameAndSetHasDataContract(type).Name, ns.Value); 730Name = dictionary.Add(XmlName.Name); 1151ThrowInvalidDataContractException(SR.Format(SR.ValueTypeCannotHaveBaseType, XmlName!.Name, XmlName.Namespace, _baseContract.XmlName!.Name, _baseContract.XmlName.Namespace)); 1365boundClassContract.XmlName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(xmlName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(UnderlyingType), genericParams)), xmlName.Namespace);
System\Runtime\Serialization\CollectionDataContract.cs (5)
482Name = dictionary.Add(XmlName.Name); 484_itemName = itemName ?? DataContract.GetXmlName(DataContract.UnwrapNullableType(itemType)).Name; 533XmlName = CreateQualifiedName(Globals.ArrayPrefix + itemContract.XmlName.Name, itemContract.XmlName.Namespace); 1402boundCollectionContract.ItemName = ItemNameSetExplicit ? ItemName : boundCollectionContract.ItemContract.XmlName.Name; 1405boundCollectionContract.XmlName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(XmlName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(UnderlyingType), paramContracts)),
System\Runtime\Serialization\DataContract.cs (11)
1066Name = dictionary.Add(xmlName.Name); 1402name = arrayOfPrefix + elementXmlName.Name; 1445string name = Globals.ArrayPrefix + itemName.Name; 1496localName.Append(qname.Name); 1604localName = dataContract.XmlName.Name; 2061throw new InvalidOperationException(SR.Format(SR.DupContractInKnownTypes, type, alreadyExistingContract.UnderlyingType, dataContract.XmlName.Namespace, dataContract.XmlName.Name)); 2079return (XmlName.Name == dataContract.XmlName.Name && XmlName.Namespace == dataContract.XmlName.Namespace && IsReference == dataContract.IsReference); 2304return GetXmlName(paramIndex).Name; 2379return new XmlQualifiedName(DataContract.EncodeLocalName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(_xmlName.Name), this)), _xmlName.Namespace); 2425return _paramGenericInfos[paramIndex].GetExpandedXmlName().Name;
System\Runtime\Serialization\DataContractSet.cs (7)
112throw new InvalidOperationException(SR.Format(SR.DupContractInDataContractSet, dataContract.XmlName.Name, dataContract.XmlName.Namespace)); 116throw new InvalidOperationException(SR.Format(SR.DupTypeContractInDataContractSet, (typeNamesEqual ? dataContract.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), (typeNamesEqual ? dataContractInSet.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContractInSet.UnderlyingType)), dataContract.XmlName.Name, dataContract.XmlName.Namespace)); 253DataContract? dataContract = DataContract.GetBuiltInDataContract(key.Name, key.Namespace); 304if (DataContract.GetBuiltInDataContract(key.Name, key.Namespace) != null) 451throw new InvalidDataContractException(SR.Format(SR.GenericTypeNameMismatch, dataContract.XmlName.Name, dataContract.XmlName.Namespace, genericXmlName.Name, genericXmlName.Namespace)); 612XmlConvert.DecodeName(xmlName.Name),
System\Runtime\Serialization\EnumDataContract.cs (5)
131_baseContract = DataContract.GetBuiltInDataContract(baseTypeName.Name, baseTypeName.Namespace)!; 139Name = dictionary.Add(XmlName.Name); 171SR.Format(SR.InvalidEnumBaseType, value.Name, value.Namespace, XmlName.Name, XmlName.Namespace)); 173_baseContract = DataContract.GetBuiltInDataContract(value.Name, value.Namespace)!;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (3)
70BeginMethod(_ilg, "Read" + DataContract.SanitizeTypeName(classContract.XmlName!.Name) + "FromJson", typeof(JsonFormatClassReaderDelegate), memberAccessFlag); 154BeginMethod(_ilg, "Read" + DataContract.SanitizeTypeName(collectionContract.XmlName.Name) + "FromJson" + "IsGetOnly", typeof(JsonFormatGetOnlyCollectionReaderDelegate), memberAccessFlag); 158BeginMethod(_ilg, "Read" + DataContract.SanitizeTypeName(collectionContract.XmlName.Name) + "FromJson", typeof(JsonFormatCollectionReaderDelegate), memberAccessFlag);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
63BeginMethod(_ilg, "Write" + DataContract.SanitizeTypeName(classContract.XmlName.Name) + "ToJson", typeof(JsonFormatClassWriterDelegate), memberAccessFlag); 90BeginMethod(_ilg, "Write" + DataContract.SanitizeTypeName(collectionContract.XmlName.Name) + "ToJson", typeof(JsonFormatCollectionWriterDelegate), memberAccessFlag);
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
43writer.WriteString(value.Name);
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
157attributes.XsiTypeName = qualifiedTypeName.Name;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
275throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
System\Runtime\Serialization\SchemaExporter.cs (16)
122type.Name = classDataContract.XmlName.Name; 221XmlElement defaultValueElement = XmlDoc.CreateElement(DefaultValueAnnotation.Name, DefaultValueAnnotation.Namespace); 235XmlElement actualTypeElement = xmlDoc.CreateElement(ActualTypeAnnotationName.Name, ActualTypeAnnotationName.Namespace); 238nameAttribute.Value = typeName.Name; 289string collectionName = dcqname.Name; 297nameAttribute.Value = genericArguments != null ? XmlConvert.DecodeName(dcqname.Name) : dcqname.Name; 351SurrogateDataAnnotationName.Name, SurrogateDataAnnotationName.Namespace, knownTypes, 363type.Name = collectionDataContract.XmlName.Name; 415XmlElement isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace); 425type.Name = enumDataContract.XmlName.Name; 466type.Name = dataContract.XmlName.Name; 599if (string.IsNullOrEmpty(xmlName.Name)) 701AddDefaultDatasetType(schemas, xmlName.Name, xmlName.Namespace); 707AddDefaultTypedDatasetType(schemas, schema, xmlName.Name, xmlName.Namespace); 835XmlElement annotationElement = XmlDoc.CreateElement(annotationQualifiedName.Name, annotationQualifiedName.Namespace);
System\Runtime\Serialization\SchemaHelper.cs (2)
73if (schemaObj is XmlSchemaType schemaType && schemaType.Name == typeQName.Name) 105if (schemaObj is XmlSchemaElement schemaElement && schemaElement.Name == elementQName.Name)
System\Runtime\Serialization\SchemaImporter.cs (81)
108if (typeName != null && typeName.Name.Length > 0) 369typeQName = new XmlQualifiedName(typeQName.Name + i.ToString(NumberFormatInfo.InvariantInfo), typeQName.Namespace); 386DataContract? dataContract = DataContract.GetBuiltInDataContract(typeName.Name, typeName.Namespace); 391throw new InvalidDataContractException(SR.Format(SR.SpecifiedTypeNotFoundInSchema, typeName.Name, typeName.Namespace)); 421ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.RedefineNotSupported)); 428ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.SimpleTypeUnionNotSupported)); 458ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.SimpleContentNotSupported)); 462ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.MixedContentNotSupported)); 474ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ComplexTypeRestrictionNotSupported)); 481ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Empty); 611if (!s_serializationSchemaElements.ContainsKey(element.RefName.Name)) 635ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.RootSequenceMustBeRequired)); 637ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.RootSequenceMaxOccursMustBe)); 647ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.RootParticleMustBeSequence)); 670ThrowTypeCannotBeImportedException(dataContract.XmlName.Name, dataContract.XmlName.Namespace, SR.Format(SR.DerivedTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 686ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.MustContainOnlyLocalElements)); 815ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.IsValueTypeFormattedIncorrectly, isValueTypeInnerText, fe.Message)); 838ThrowISerializableTypeCannotBeImportedException(dataContract.XmlName.Name, dataContract.XmlName.Namespace, SR.Format(SR.BaseTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 840ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableDerivedContainsOneOrMoreItems)); 849ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableDoesNotContainAny)); 852ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableDoesNotContainAny)); 854ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableContainsMoreThanOneItems)); 858ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableDoesNotContainAny)); 863ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.MinOccurs)); 865ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableWildcardMaxOccursMustBe, iSerializableWildcardElement.MaxOccursString)); 867ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableWildcardNamespaceInvalid, iSerializableWildcardElement.Namespace)); 869ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableWildcardProcessContentsInvalid, iSerializableWildcardElement.ProcessContents)); 889ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ISerializableMustRefFactoryTypeAttribute, factoryTypeAttributeRefName.Name, factoryTypeAttributeRefName.Namespace)); 903ThrowTypeCannotBeImportedException(dataContract.XmlName.Name, dataContract.XmlName.Namespace, SR.Format(dataContract.IsISerializable ? SR.InvalidISerializableDerivation : SR.InvalidClassDerivation, baseTypeName.Name, baseTypeName.Namespace)); 932ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.AnonymousTypeNotSupported, typeName.Name, typeName.Namespace)); 937ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.TopLevelElementRepresentsDifferentType, topLevelElement.SchemaTypeName.Name, topLevelElement.SchemaTypeName.Namespace)); 949ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementMinOccursMustBe, element.Name)); 951ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementMaxOccursMustBe, element.Name)); 968ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.FormMustBeQualified, element.Name)); 974memberTypeContract = ImportAnonymousElement(element, new XmlQualifiedName(string.Format(CultureInfo.InvariantCulture, "{0}.{1}Type", typeName.Name, element.Name), typeName.Namespace)); 976ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 991throw new InvalidDataContractException(SR.Format(SR.InvalidEmitDefaultAnnotation, memberName, typeName.Name, typeName.Namespace)); 1009ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.CannotHaveDuplicateElementNames, memberName)); 1016_dataContractSet.SetSurrogateData(dataMember, ImportSurrogateData(ImportAnnotation(element.Annotation, surrogateDataAnnotationName), surrogateDataAnnotationName.Name, surrogateDataAnnotationName.Namespace)); 1028throw new InvalidDataContractException(SR.Format(SR.AnnotationAttributeNotFound, SchemaExporter.DefaultValueAnnotation.Name, typeName.Name, typeName.Namespace, Globals.EmitDefaultValueAttribute)); 1040throw new InvalidDataContractException(SR.Format(SR.AnnotationAttributeNotFound, SchemaExporter.ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, Globals.ActualTypeNameAttribute)); 1043throw new InvalidDataContractException(SR.Format(SR.AnnotationAttributeNotFound, SchemaExporter.ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, Globals.ActualTypeNamespaceAttribute)); 1073ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ArrayItemFormMustBe, element.Name)); 1088XmlQualifiedName fullName = new XmlQualifiedName(string.Format(CultureInfo.InvariantCulture, "{0}.{1}Type", typeName.Name, element.Name), typeName.Namespace); 1093ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 1109ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.InvalidKeyValueType, element.Name)); 1113ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.InvalidKeyValueTypeNamespace, element.Name, keyValueContract.Namespace)); 1126dataContract.ItemContract.XmlName = new XmlQualifiedName(genericInfo.GetExpandedXmlName().Name, typeName.Namespace); 1162ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.IsDictionaryFormattedIncorrectly, isDictionaryInnerText, fe.Message)); 1174ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.EnumListMustContainAnonymousType)); 1178ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.EnumUnionInAnonymousTypeNotSupported)); 1180ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.EnumListInAnonymousTypeNotSupported)); 1186ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.EnumRestrictionInvalid)); 1208ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.EnumOnlyEnumerationFacetsSupported)); 1210ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.EnumEnumerationFacetsMustHaveValue)); 1233ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.SimpleTypeRestrictionDoesNotSpecifyBase)); 1252if (typeElement != null && typeElement.NamespaceURI == surrogateDataAnnotationName.Namespace && typeElement.LocalName == surrogateDataAnnotationName.Name) 1254object? surrogateData = ImportSurrogateData(typeElement, surrogateDataAnnotationName.Name, surrogateDataAnnotationName.Namespace); 1348ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.AbstractTypeNotSupported)); 1350ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.MixedContentNotSupported)); 1356ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.AbstractElementNotSupported, element.Name)); 1358ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.DefaultOnElementNotSupported, element.Name)); 1360ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.FixedOnElementNotSupported, element.Name)); 1362ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.SubstitutionGroupOnElementNotSupported, element.Name)); 1368ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.AnyAttributeNotSupported)); 1386ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.TypeShouldNotContainAttributes, Globals.SerializationNamespace)); 1398ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.CannotHaveDuplicateAttributeNames, refName.Name)); 1418ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.InvalidAnnotationExpectingText, xmlElement.LocalName, xmlElement.NamespaceURI, child.LocalName, child.NamespaceURI)); 1436if (markup[i] is XmlElement annotationElement && annotationElement.LocalName == annotationQualifiedName.Name && annotationElement.NamespaceURI == annotationQualifiedName.Namespace)
System\Runtime\Serialization\XmlDataContract.cs (4)
152Name = dictionary.Add(XmlName.Name); 264TopLevelElementName = dictionary.Add(elementName.Name); 401return (XmlName.Name == dataContract.XmlName.Name && XmlName.Namespace == dataContract.XmlName.Namespace);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
92_ilg.BeginMethod("Read" + classContract.XmlName.Name + "FromXml", Globals.TypeOfXmlFormatClassReaderDelegate, memberAccessFlag); 220_ilg.BeginMethod("Read" + collectionContract.XmlName.Name + "FromXml" + "IsGetOnly", Globals.TypeOfXmlFormatGetOnlyCollectionReaderDelegate, memberAccessFlag); 224_ilg.BeginMethod("Read" + collectionContract.XmlName.Name + "FromXml" + string.Empty, Globals.TypeOfXmlFormatCollectionReaderDelegate, memberAccessFlag);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
86_ilg.BeginMethod("Write" + classContract.XmlName.Name + "ToXml", Globals.TypeOfXmlFormatClassWriterDelegate, memberAccessFlag); 130_ilg.BeginMethod("Write" + collectionContract.XmlName.Name + "ToXml", Globals.TypeOfXmlFormatCollectionWriterDelegate, memberAccessFlag);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
230DataContract? knownContract = ResolveDataContractFromKnownTypes(dataContract.XmlName.Name, dataContract.XmlName.Namespace, null /*memberTypeContract*/, declaredType); 245PrimitiveDataContract.GetPrimitiveDataContract(typeName.Name, typeName.Namespace) ??
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
245DataContract? knownContract = ResolveDataContractFromKnownTypes(dataContract.XmlName.Name, dataContract.XmlName.Namespace, null /*memberTypeContract*/, declaredType); 248throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
System\Runtime\Serialization\XmlSerializableServices.cs (1)
71SchemaExporter.AddDefaultXmlType(schemas, typeQName.Name, typeQName.Namespace);
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
659WriteQualifiedName(value.Name, value.Namespace);
System.Private.Xml (453)
System\Xml\Cache\XPathDocumentBuilder.cs (1)
316if (_pageSibling[_idxSibling].LocalName == _idAttrName.Name &&
System\Xml\Core\XmlTextReaderImpl.cs (1)
9238string localName = _nameTable.Add(attrDef.Name.Name);
System\Xml\Core\XmlWriterSettings.cs (1)
629writer.Write(qName.Name);
System\Xml\Dom\DocumentSchemaValidator.cs (1)
422attr = _document.CreateDefaultAttribute(GetDefaultPrefix(attrQName.Namespace), attrQName.Name, attrQName.Namespace);
System\Xml\Dom\XmlDocument.cs (2)
674string attrLocalname = attdef.Name.Name; 1678if (attdef.Name.Name == attrLocalname)
System\Xml\Dom\XmlLoader.cs (7)
630dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral, _doc)); 639XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 649XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 669_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 670_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null));
System\Xml\Schema\AutoValidator.cs (1)
99else if (Ref.Equal(objectNs, SchemaNames.QnDtDt.Namespace) && Ref.Equal(objectName, SchemaNames.QnDtDt.Name))
System\Xml\Schema\BaseProcessor.cs (1)
57if (qname.Name.Length == 0)
System\Xml\Schema\DataTypeImplementation.cs (2)
230DatatypeImplementation dt = FromTypeName(qname.Name)!; 246dt = FromTypeName(qname.Name)!;
System\Xml\Schema\DtdParser.cs (23)
682if (attrDef != null && attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals("xml") && attrDef.Name.Name == "space") 708if (attrDef.Name.Name == "space") 735else if (attrDef.Name.Name == "lang") 944SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, SR.Sch_DupElementDecl, GetNameString()); 1276string notationName = entity.NData.Name; 1312if (!_schemaInfo.Notations.ContainsKey(notationName.Name)) 1314_undeclaredNotations?.Remove(notationName.Name); 1316_schemaInfo.Notations.Add(notation.Name.Name, notation); 1323SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, SR.Sch_DupNotation, notationName.Name); 3257Throw(_curPos - entityName.Name.Length - 1, SR.Xml_InvalidParEntityRef); 3267Throw(_curPos - entityName.Name.Length - 1, paramEntity ? SR.Xml_RecursiveParEntity : SR.Xml_RecursiveGenEntity, entityName.Name); 3360SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, SR.Xml_UndeclaredParEntity, entityName.Name); 3369SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, SR.Xml_UndeclaredEntity, entityName.Name); 3374Throw(_curPos - entityName.Name.Length - 1, SR.Xml_UndeclaredEntity, entityName.Name); 3382Throw(_curPos - entityName.Name.Length - 1, SR.Xml_UnparsedEntityRef, entityName.Name); 3387Throw(_curPos - entityName.Name.Length - 1, SR.Xml_ExternalEntityInAttValue, entityName.Name);
System\Xml\Schema\DtdParserAsync.cs (13)
326if (attrDef != null && attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals("xml") && attrDef.Name.Name == "space") 352if (attrDef.Name.Name == "space") 379else if (attrDef.Name.Name == "lang") 588SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, SR.Sch_DupElementDecl, GetNameString()); 909string notationName = entity.NData.Name; 945if (!_schemaInfo.Notations.ContainsKey(notationName.Name)) 947_undeclaredNotations?.Remove(notationName.Name); 950_schemaInfo.Notations.Add(notation.Name.Name, notation); 957SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, SR.Sch_DupNotation, notationName.Name); 2587Throw(_curPos - entityName.Name.Length - 1, SR.Xml_InvalidParEntityRef); 2597Throw(_curPos - entityName.Name.Length - 1, paramEntity ? SR.Xml_RecursiveParEntity : SR.Xml_RecursiveGenEntity, entityName.Name);
System\Xml\Schema\DtdValidator.cs (2)
431string n = qname.Name; 508context.LocalName = elementName.Name;
System\Xml\Schema\Inference\Infer.cs (7)
1070else if ((el.RefName.Name == xtr.LocalName) && (el.RefName.Namespace == xtr.NamespaceURI)) 1101else if (el.RefName.Name == xtr.LocalName && el.RefName.Namespace == xtr.NamespaceURI) 1133else if (el.RefName.Name == xtr.LocalName && el.RefName.Namespace == xtr.NamespaceURI) 1370if (schemaAttribute.RefName.Name == attributeName && schemaAttribute.RefName.Namespace == nsURI) 1387if (xse.RefName.Name == elementName && xse.RefName.Namespace == nsURI) 1423if (attr.RefName.Name.Length == 0) 1432if (null == FindAttributeRef(attributesInInstance, attr.RefName.Name, attr.RefName.Namespace))
System\Xml\Schema\Preprocessor.cs (2)
1716SendValidationEvent(SR.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1770SendValidationEvent(SR.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType);
System\Xml\Schema\SchemaAttDef.cs (1)
62get { return ((SchemaAttDef)this).Name.Name; }
System\Xml\Schema\SchemaCollectionCompiler.cs (3)
308schemaInfo.Notations.TryAdd(no.Name.Name, no); 2226throw new XmlSchemaException(SR.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name, xe); 2457sb.Append(localElement.QualifiedName.Name);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (2)
1381SendValidationEvent(SR.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1435SendValidationEvent(SR.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType);
System\Xml\Schema\SchemaElementDecl.cs (1)
71get { return ((SchemaElementDecl)this).Name.Name; }
System\Xml\Schema\SchemaEntity.cs (1)
41get { return this.Name.Name; }
System\Xml\Schema\SchemaInfo.cs (1)
325Notations.TryAdd(notation.Name.Name, notation);
System\Xml\Schema\SchemaSetCompiler.cs (2)
170schemaInfo.Notations.TryAdd(no.Name.Name, no); 2685throw new XmlSchemaException(SR.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name, xe);
System\Xml\Schema\XdrBuilder.cs (19)
469qnameValue = new XmlQualifiedName(qnameValue.Name, _TargetNamespace); 473qnameValue = new XmlQualifiedName(qnameValue.Name); 495XmlQualifiedName.ToString(qname.Name, prefix)); 678gname = new XmlQualifiedName(gname.Name, builder._TargetNamespace); 689builder.SendValidationEvent(SR.Sch_UndeclaredAttribute, gname.Name); 697builder.SendValidationEvent(SR.Sch_UndeclaredElement, XmlQualifiedName.ToString(ed!.Name.Name, ed.Prefix)); 733builder.SendValidationEvent(SR.Sch_DupElementDecl, XmlQualifiedName.ToString(qname.Name, prefix)); 1046builder.SendValidationEvent(SR.Sch_DupAttribute, XmlQualifiedName.ToString(qname.Name, prefix)); 1052qname = new XmlQualifiedName(qname.Name, builder._TargetNamespace); 1056builder.SendValidationEvent(SR.Sch_DupAttribute, XmlQualifiedName.ToString(qname.Name, prefix)); 1075builder._AttributeDef._AttDef!.Datatype = builder.CheckDatatype(qname.Name)!; 1288gname = new XmlQualifiedName(qname.Name, builder._TargetNamespace); 1297builder.SendValidationEvent(SR.Sch_UndeclaredAttribute, XmlQualifiedName.ToString(qname.Name, prefix)); 1560SendValidationEvent(SR.Sch_UnknownOrder, qname.Name); 1589if (qname.Name == "yes") 1593else if (qname.Name != "no") 1743SendValidationEvent(SR.Sch_UnknownContent, qname.Name); 1756SendValidationEvent(SR.Sch_UnknownModel, qname.Name); 1774XmlQualifiedName.ToString(_ElementDef._ElementDecl.Name.Name, _ElementDef._ElementDecl.Prefix));
System\Xml\Schema\XdrValidator.cs (3)
95if (SchemaNames.IsXDRRoot(elementName.Name, elementName.Namespace) && reader.Depth > 0) 218Ref.Equal(objectName, SchemaNames.QnDtDt.Name) 660context.LocalName = elementName.Name;
System\Xml\Schema\XmlSchemaSet.cs (1)
1383if (qname.Name.Length == 0)
System\Xml\Schema\XmlSchemaValidator.cs (10)
646AttributeIdentityConstraints(attQName.Name, attQName.Namespace, typedVal!, attValue!.ToString()!, datatype); 1039attrData.LocalName = _nameTable.Add(attdef.Name.Name); 1077AttributeIdentityConstraints(attdef.Name.Name, attdef.Name.Namespace, attdef.DefaultValueTyped, attdef.DefaultValueRaw, datatype); 1518_context.LocalName = elementName.Name; 2665if (name.Name == "*") 2673builder.Append(SR.Format(SR.Sch_ElementNameAndNamespace, name.Name, name.Namespace)); 2677builder.Append(SR.Format(SR.Sch_ElementName, name.Name)); 2689if (name.Name == "*") 2702subBuilder.Append(name.Name); 2751return BuildElementName(qname.Name, qname.Namespace);
System\Xml\Schema\XmlValueConverter.cs (7)
492return name.Name; 496return $"xs:{name.Name}"; 500return $"xdt:{name.Name}"; 504return $"{{{name.Namespace}}}{name.Name}"; 766return $"{{{qname.Namespace}}}{qname.Name}"; 772return (prefix.Length != 0) ? $"{prefix}:{qname.Name}" : qname.Name;
System\Xml\Schema\XsdBuilder.cs (1)
754_namespaces.Add(new XmlQualifiedName((name == _schemaNames.QnXmlNs.Name) ? string.Empty : name, value));
System\Xml\Schema\XsdValidator.cs (4)
175if (IsXSDRoot(elementName.Name, elementName.Namespace) && reader.Depth > 0) 402XmlSchemaSimpleType? simpleType = DatatypeImplementation.GetSimpleTypeFromXsdType(new XmlQualifiedName(xsiType.Name, _nsXs)); 544AttributeIdentityConstraints(attdef.Name.Name, attdef.Name.Namespace, UnWrapUnion(attdef.DefaultValueTyped), attdef.DefaultValueRaw, attdef); 783context.LocalName = elementName.Name;
System\Xml\Serialization\ImportContext.cs (1)
94Warnings.Add(SR.Format(SR.XmlMismatchSchemaObjects, item.GetType().Name, qname.Name, qname.Namespace));
System\Xml\Serialization\Mappings.cs (2)
1069this.TypeName = xsiType.Name; 1337throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
System\Xml\Serialization\NameTable.cs (3)
45Add(qname.Name, qname.Namespace, value); 59return _table.TryGetValue(new NameKey(qname.Name, qname.Namespace), out obj) ? obj : null; 63_table[new NameKey(qname.Name, qname.Namespace)] = value;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
980if (tser == null || QNameEqual(tser, sm.XsiType!.Name, defaultNamespace)) 2049return xsiType.Name == name && string.Equals(xsiType.Namespace, defaultNamespace);
System\Xml\Serialization\SchemaImporter.cs (1)
145throw new InvalidOperationException(string.Format(error, name.Name, name.Namespace));
System\Xml\Serialization\SchemaObjectWriter.cs (2)
50return string.Compare(qn1.Name, qn2.Name, StringComparison.Ordinal);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
542serializableMapping.TypeName = qname.Name;
System\Xml\Serialization\XmlSchemaImporter.cs (15)
67throw new InvalidOperationException(SR.Format(SR.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName)); 93accessor.Name = typeName.Name; 117throw new InvalidOperationException(SR.Format(SR.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName)); 270throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 399if (name.Name == Soap.UrType && name.Namespace == XmlSchema.Namespace) 411mapping = ImportType((XmlSchemaComplexType)type, name.Namespace, name.Name, desiredMappingType, baseType); 414mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false); 523throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace)); 1051equivalentElement.SubstitutionGroup.Name == element.Name) 1558accessor.Name = name.Name; 1819throw new InvalidOperationException(SR.Format(SR.XmlMissingGroup, name.Name)); 1828throw new InvalidOperationException(SR.Format(SR.XmlMissingAttributeGroup, name.Name)); 1878TypeDesc? typeDesc = TypeScope.GetTypeDesc(name.Name, name.Namespace, flags); 1894if (name.Name == Soap.Array && name.Namespace == Soap.Encoding) 1934throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
System\Xml\Serialization\XmlSchemas.cs (3)
519item = SR.Format(SR.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace); 540return SR.Format(SR.XmlSchemaAttributeReference, a.RefName.ToString(), parentName.Name, parentName.Namespace); 551item = SR.Format(SR.XmlSchemaContentDef, parentName.Name, parentName.Namespace, null);
System\Xml\Serialization\XmlSerializationReader.cs (241)
276if ((object)typeName.Name == (object)_stringID || 277(object)typeName.Name == (object)_anyURIID || 278(object)typeName.Name == (object)_durationID || 279(object)typeName.Name == (object)_ENTITYID || 280(object)typeName.Name == (object)_ENTITIESID || 281(object)typeName.Name == (object)_gDayID || 282(object)typeName.Name == (object)_gMonthID || 283(object)typeName.Name == (object)_gMonthDayID || 284(object)typeName.Name == (object)_gYearID || 285(object)typeName.Name == (object)_gYearMonthID || 286(object)typeName.Name == (object)_IDID || 287(object)typeName.Name == (object)_IDREFID || 288(object)typeName.Name == (object)_IDREFSID || 289(object)typeName.Name == (object)_integerID || 290(object)typeName.Name == (object)_languageID || 291(object)typeName.Name == (object)_nameID || 292(object)typeName.Name == (object)_NCNameID || 293(object)typeName.Name == (object)_NMTOKENID || 294(object)typeName.Name == (object)_NMTOKENSID || 295(object)typeName.Name == (object)_negativeIntegerID || 296(object)typeName.Name == (object)_nonPositiveIntegerID || 297(object)typeName.Name == (object)_nonNegativeIntegerID || 298(object)typeName.Name == (object)_normalizedStringID || 299(object)typeName.Name == (object)_NOTATIONID || 300(object)typeName.Name == (object)_positiveIntegerID || 301(object)typeName.Name == (object)_tokenID) 303else if ((object)typeName.Name == (object)_intID) 305else if ((object)typeName.Name == (object)_booleanID) 307else if ((object)typeName.Name == (object)_shortID) 309else if ((object)typeName.Name == (object)_longID) 311else if ((object)typeName.Name == (object)_floatID) 313else if ((object)typeName.Name == (object)_doubleID) 315else if ((object)typeName.Name == (object)_decimalID) 317else if ((object)typeName.Name == (object)_dateTimeID) 319else if ((object)typeName.Name == (object)_qnameID) 321else if ((object)typeName.Name == (object)_dateID) 323else if ((object)typeName.Name == (object)_timeID) 325else if ((object)typeName.Name == (object)_hexBinaryID) 327else if ((object)typeName.Name == (object)_base64BinaryID) 329else if ((object)typeName.Name == (object)_unsignedByteID) 331else if ((object)typeName.Name == (object)_byteID) 333else if ((object)typeName.Name == (object)_unsignedShortID) 335else if ((object)typeName.Name == (object)_unsignedIntID) 337else if ((object)typeName.Name == (object)_unsignedLongID) 344if ((object)typeName.Name == (object)_stringID || 345(object)typeName.Name == (object)_anyURIID || 346(object)typeName.Name == (object)_durationID || 347(object)typeName.Name == (object)_ENTITYID || 348(object)typeName.Name == (object)_ENTITIESID || 349(object)typeName.Name == (object)_gDayID || 350(object)typeName.Name == (object)_gMonthID || 351(object)typeName.Name == (object)_gMonthDayID || 352(object)typeName.Name == (object)_gYearID || 353(object)typeName.Name == (object)_gYearMonthID || 354(object)typeName.Name == (object)_IDID || 355(object)typeName.Name == (object)_IDREFID || 356(object)typeName.Name == (object)_IDREFSID || 357(object)typeName.Name == (object)_integerID || 358(object)typeName.Name == (object)_languageID || 359(object)typeName.Name == (object)_nameID || 360(object)typeName.Name == (object)_NCNameID || 361(object)typeName.Name == (object)_NMTOKENID || 362(object)typeName.Name == (object)_NMTOKENSID || 363(object)typeName.Name == (object)_negativeIntegerID || 364(object)typeName.Name == (object)_nonPositiveIntegerID || 365(object)typeName.Name == (object)_nonNegativeIntegerID || 366(object)typeName.Name == (object)_normalizedStringID || 367(object)typeName.Name == (object)_NOTATIONID || 368(object)typeName.Name == (object)_positiveIntegerID || 369(object)typeName.Name == (object)_tokenID) 371else if ((object)typeName.Name == (object)_intID) 373else if ((object)typeName.Name == (object)_booleanID) 375else if ((object)typeName.Name == (object)_shortID) 377else if ((object)typeName.Name == (object)_longID) 379else if ((object)typeName.Name == (object)_floatID) 381else if ((object)typeName.Name == (object)_doubleID) 383else if ((object)typeName.Name == (object)_oldDecimalID) 385else if ((object)typeName.Name == (object)_oldTimeInstantID) 387else if ((object)typeName.Name == (object)_qnameID) 389else if ((object)typeName.Name == (object)_dateID) 391else if ((object)typeName.Name == (object)_timeID) 393else if ((object)typeName.Name == (object)_hexBinaryID) 395else if ((object)typeName.Name == (object)_byteID) 397else if ((object)typeName.Name == (object)_unsignedShortID) 399else if ((object)typeName.Name == (object)_unsignedIntID) 401else if ((object)typeName.Name == (object)_unsignedLongID) 408if ((object)typeName.Name == (object)_charID) 410else if ((object)typeName.Name == (object)_guidID) 524if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)_urTypeID) 529if ((object)type.Name == (object)_stringID || 530(object)type.Name == (object)_normalizedStringID) 532else if ((object)type.Name == (object)_anyURIID || 533(object)type.Name == (object)_durationID || 534(object)type.Name == (object)_ENTITYID || 535(object)type.Name == (object)_ENTITIESID || 536(object)type.Name == (object)_gDayID || 537(object)type.Name == (object)_gMonthID || 538(object)type.Name == (object)_gMonthDayID || 539(object)type.Name == (object)_gYearID || 540(object)type.Name == (object)_gYearMonthID || 541(object)type.Name == (object)_IDID || 542(object)type.Name == (object)_IDREFID || 543(object)type.Name == (object)_IDREFSID || 544(object)type.Name == (object)_integerID || 545(object)type.Name == (object)_languageID || 546(object)type.Name == (object)_nameID || 547(object)type.Name == (object)_NCNameID || 548(object)type.Name == (object)_NMTOKENID || 549(object)type.Name == (object)_NMTOKENSID || 550(object)type.Name == (object)_negativeIntegerID || 551(object)type.Name == (object)_nonPositiveIntegerID || 552(object)type.Name == (object)_nonNegativeIntegerID || 553(object)type.Name == (object)_NOTATIONID || 554(object)type.Name == (object)_positiveIntegerID || 555(object)type.Name == (object)_tokenID) 557else if ((object)type.Name == (object)_intID) 559else if ((object)type.Name == (object)_booleanID) 561else if ((object)type.Name == (object)_shortID) 563else if ((object)type.Name == (object)_longID) 565else if ((object)type.Name == (object)_floatID) 567else if ((object)type.Name == (object)_doubleID) 569else if ((object)type.Name == (object)_decimalID) 571else if ((object)type.Name == (object)_dateTimeID) 573else if ((object)type.Name == (object)_qnameID) 575else if ((object)type.Name == (object)_dateID) 577else if ((object)type.Name == (object)_timeID) 579else if ((object)type.Name == (object)_unsignedByteID) 581else if ((object)type.Name == (object)_byteID) 583else if ((object)type.Name == (object)_unsignedShortID) 585else if ((object)type.Name == (object)_unsignedIntID) 587else if ((object)type.Name == (object)_unsignedLongID) 589else if ((object)type.Name == (object)_hexBinaryID) 591else if ((object)type.Name == (object)_base64BinaryID) 593else if ((object)type.Name == (object)_base64ID && ((object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID)) 600if ((object)type.Name == (object)_stringID || 601(object)type.Name == (object)_normalizedStringID) 603else if ((object)type.Name == (object)_anyURIID || 604(object)type.Name == (object)_anyURIID || 605(object)type.Name == (object)_durationID || 606(object)type.Name == (object)_ENTITYID || 607(object)type.Name == (object)_ENTITIESID || 608(object)type.Name == (object)_gDayID || 609(object)type.Name == (object)_gMonthID || 610(object)type.Name == (object)_gMonthDayID || 611(object)type.Name == (object)_gYearID || 612(object)type.Name == (object)_gYearMonthID || 613(object)type.Name == (object)_IDID || 614(object)type.Name == (object)_IDREFID || 615(object)type.Name == (object)_IDREFSID || 616(object)type.Name == (object)_integerID || 617(object)type.Name == (object)_languageID || 618(object)type.Name == (object)_nameID || 619(object)type.Name == (object)_NCNameID || 620(object)type.Name == (object)_NMTOKENID || 621(object)type.Name == (object)_NMTOKENSID || 622(object)type.Name == (object)_negativeIntegerID || 623(object)type.Name == (object)_nonPositiveIntegerID || 624(object)type.Name == (object)_nonNegativeIntegerID || 625(object)type.Name == (object)_NOTATIONID || 626(object)type.Name == (object)_positiveIntegerID || 627(object)type.Name == (object)_tokenID) 629else if ((object)type.Name == (object)_intID) 631else if ((object)type.Name == (object)_booleanID) 633else if ((object)type.Name == (object)_shortID) 635else if ((object)type.Name == (object)_longID) 637else if ((object)type.Name == (object)_floatID) 639else if ((object)type.Name == (object)_doubleID) 641else if ((object)type.Name == (object)_oldDecimalID) 643else if ((object)type.Name == (object)_oldTimeInstantID) 645else if ((object)type.Name == (object)_qnameID) 647else if ((object)type.Name == (object)_dateID) 649else if ((object)type.Name == (object)_timeID) 651else if ((object)type.Name == (object)_unsignedByteID) 653else if ((object)type.Name == (object)_byteID) 655else if ((object)type.Name == (object)_unsignedShortID) 657else if ((object)type.Name == (object)_unsignedIntID) 659else if ((object)type.Name == (object)_unsignedLongID) 666if ((object)type.Name == (object)_charID) 668else if ((object)type.Name == (object)_guidID) 670else if ((object)type.Name == (object)_timeSpanID) 672else if ((object)type.Name == (object)_dateTimeOffsetID) 686if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)_urTypeID) 693if ((object)type.Name == (object)_stringID || 694(object)type.Name == (object)_anyURIID || 695(object)type.Name == (object)_durationID || 696(object)type.Name == (object)_ENTITYID || 697(object)type.Name == (object)_ENTITIESID || 698(object)type.Name == (object)_gDayID || 699(object)type.Name == (object)_gMonthID || 700(object)type.Name == (object)_gMonthDayID || 701(object)type.Name == (object)_gYearID || 702(object)type.Name == (object)_gYearMonthID || 703(object)type.Name == (object)_IDID || 704(object)type.Name == (object)_IDREFID || 705(object)type.Name == (object)_IDREFSID || 706(object)type.Name == (object)_integerID || 707(object)type.Name == (object)_languageID || 708(object)type.Name == (object)_nameID || 709(object)type.Name == (object)_NCNameID || 710(object)type.Name == (object)_NMTOKENID || 711(object)type.Name == (object)_NMTOKENSID || 712(object)type.Name == (object)_negativeIntegerID || 713(object)type.Name == (object)_nonPositiveIntegerID || 714(object)type.Name == (object)_nonNegativeIntegerID || 715(object)type.Name == (object)_normalizedStringID || 716(object)type.Name == (object)_NOTATIONID || 717(object)type.Name == (object)_positiveIntegerID || 718(object)type.Name == (object)_tokenID) 720else if ((object)type.Name == (object)_intID) 724else if ((object)type.Name == (object)_booleanID) 726else if ((object)type.Name == (object)_shortID) 728else if ((object)type.Name == (object)_longID) 730else if ((object)type.Name == (object)_floatID) 732else if ((object)type.Name == (object)_doubleID) 734else if ((object)type.Name == (object)_decimalID) 736else if ((object)type.Name == (object)_dateTimeID) 738else if ((object)type.Name == (object)_qnameID) 740else if ((object)type.Name == (object)_dateID) 742else if ((object)type.Name == (object)_timeID) 744else if ((object)type.Name == (object)_unsignedByteID) 746else if ((object)type.Name == (object)_byteID) 748else if ((object)type.Name == (object)_unsignedShortID) 750else if ((object)type.Name == (object)_unsignedIntID) 752else if ((object)type.Name == (object)_unsignedLongID) 754else if ((object)type.Name == (object)_hexBinaryID) 756else if ((object)type.Name == (object)_base64BinaryID) 758else if ((object)type.Name == (object)_base64ID && ((object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID)) 765if ((object)type.Name == (object)_charID) 767else if ((object)type.Name == (object)_guidID) 769else if ((object)type.Name == (object)_timeSpanID) 771else if ((object)type.Name == (object)_dateTimeOffsetID) 950if (qname.Name != name) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag())); 1285return new InvalidOperationException(SR.Format(SR.XmlUnknownType, type.Name, type.Namespace, CurrentTag())); 1670array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength); 1698type = qname.Name; 4816WriteQNameEqual("tser", sm.XsiType!.Name, sm.XsiType.Namespace); 4881WriteQNameEqual("tser", derived.XsiType!.Name, derived.XsiType.Namespace); 4906WriteQuotedCSharpString(derived.XsiType.Name); 4910WriteQuotedCSharpString(head.XsiType!.Name); 4924WriteQuotedCSharpString(derived.XsiType.Name);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
3245WriteQNameEqual("tser", sm.XsiType!.Name, sm.XsiType.Namespace); 3314WriteQNameEqual("tser", derived.XsiType!.Name, derived.XsiType.Namespace); 3352ilg.Ldstr(GetCSharpString(derived.XsiType.Name)); 3354ilg.Ldstr(GetCSharpString(head.XsiType!.Name)); 3370ilg.Ldstr(GetCSharpString(derived.XsiType.Name));
System\Xml\Serialization\XmlSerializationWriter.cs (12)
466return GetQualifiedName(EscapeName ? XmlConvert.EncodeLocalName(xmlQualifiedName.Name) : xmlQualifiedName.Name, xmlQualifiedName.Namespace); 537string alias = qname.Name; 569if (qname.Name.Length > prefixLength) 571string name = qname.Name; 1074WriteXsiType(xsiType.Name, xsiType.Namespace); 1115WriteXsiType(xsiType.Name, xsiType.Namespace); 1125WriteXsiType(xsiType.Name, xsiType.Namespace); 1168WriteXsiType(xsiType.Name, xsiType.Namespace); 1218typeName = qualName.Name; 1245typeName = qualName.Name; 1439string prefix = qname.Name;
System\Xml\Serialization\XmlSerializerNamespaces.cs (2)
46_namespaces.Add(qname.Name, qname); 57_namespaces.Add(qname.Name, qname);
System\Xml\XmlQualifiedName.cs (10)
54_hash = Name.GetHashCode(); /*+ Namespace.GetHashCode()*/ // for perf reasons we are not taking ns's hashcode. 62public bool IsEmpty => Name.Length == 0 && Namespace.Length == 0; 68return Namespace.Length == 0 ? Name : $"{Namespace}:{Name}"; 81return other is XmlQualifiedName qName && Equals(qName.Name, qName.Namespace); 84internal bool Equals(string name, string ns) => Name == name && Namespace == ns; 101return a.Name == b.Name && a.Namespace == b.Namespace; 135XmlConvert.VerifyNCName(Name); 144Name = nameTable.Add(Name);
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (2)
874if ((object)qnameDup.Name == (object)qname.Name && (object)qnameDup.Namespace == (object)qname.Namespace)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (5)
1505Debug.Assert(ValidateNames.ParseNCName(name.Name, 0) == name.Name.Length); 1509prefix = EnsureValidName(prefix, name.Name, name.Namespace, nodeType); 1512WriteStartElement(prefix, name.Name, name.Namespace); 1514WriteStartAttribute(prefix, name.Name, name.Namespace);
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
314Debug.Fail($"Conversion from {value.XmlType.QualifiedName.Name} to {destinationType} is not supported.");
System\Xml\Xsl\Runtime\XsltFunctions.cs (2)
219switch (name.Name) 226else if (name.Namespace == XmlReservedNs.NsMsxsl && name.Name == "version")
System\Xml\Xsl\Runtime\XsltLibrary.cs (3)
142if (QilGenerator.IsFunctionAvailable(name.Name, name.Namespace)) 154if (_runtime.ExternalContext.LateBoundFunctionExists(name.Name, name.Namespace)) 160return _runtime.EarlyBoundFunctionExists(name.Name, name.Namespace);
System\Xml\Xsl\XmlQualifiedNameTest.cs (7)
74get { return (object)this.Name == (object)wildcard; } 87return other.IsNameWildcard || this.Name == other.Name; 127return this.Name; 131return $"*:{this.Name}"; 135return $"{{~{this.Namespace}}}:{this.Name}"; 139return $"{{{this.Namespace}}}:{this.Name}";
System\Xml\Xsl\XmlQueryType.cs (4)
648return name.Name; 652return $"xs:{name.Name}"; 656return $"xdt:{name.Name}"; 660return $"{{{name.Namespace}}}{name.Name}";
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (6)
350string localName = name.Name; 611QilNode name = _f.QName(resolvedName.Name, resolvedName.Namespace); 671name = _f.QName(qname.Name, qname.Namespace); 690name = _f.QName(qname.Name, qname.Namespace); 710return _f.Boolean(QilGenerator.IsFunctionAvailable(qname.Name, qname.Namespace)); 714name = _f.QName(qname.Name, qname.Namespace);
System\Xml\Xsl\Xslt\XsltQilFactory.cs (1)
144QName(format.Name.Name, format.Name.Namespace),
System\Xml\Xsl\XsltOld\Processor.cs (1)
220object? parameter = _args.GetParam(qname.Name, qname.Namespace);
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
229switch (method.Name)
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
288a = new XAttribute(XNamespace.Get(sa.QualifiedName.Namespace).GetName(sa.QualifiedName.Name), GetDefaultValue(sa)!);