18 writes to Name
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\SchemaExporter.cs (7)
122type.Name = classDataContract.XmlName.Name; 364type.Name = collectionDataContract.XmlName.Name; 426type.Name = enumDataContract.XmlName.Name; 467type.Name = dataContract.XmlName.Name; 715defaultXmlType.Name = localName; 776type.Name = localName; 791type.Name = localName;
System.Private.Xml (11)
System\Xml\Schema\XmlSchemaType.cs (1)
343set { Name = value; }
System\Xml\Schema\XsdBuilder.cs (2)
1479builder._simpleType!.Name = value; 1629builder._complexType!.Name = value;
System\Xml\Serialization\Types.cs (2)
631dataType.Name = dataTypeName; 642dataType.Name = dataTypeName;
System\Xml\Serialization\XmlSchemaExporter.cs (6)
51type.Name = xmlMembersMapping.Accessor.Name; 154type.Name = name; 199type.Name = name; 607type.Name = mapping.TypeName; 980type.Name = mapping.TypeName; 1149dataType.Name = mapping.TypeName;
77 references to Name
System.Data.Common (4)
System\Data\SimpleType.cs (2)
40_name = node.Name; 83_baseType = content.BaseType!.Name;
System\Data\XMLSchema.cs (2)
1043throw ExceptionBuilder.CircularComplexType(ct.Name!); 2391if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS)
System.Private.DataContractSerialization (12)
System\Runtime\Serialization\SchemaExporter.cs (2)
575qname = new XmlQualifiedName(((XmlSchemaType)item).Name, schema.TargetNamespace); 657string? typeName = providerXsdType.Name;
System\Runtime\Serialization\SchemaHelper.cs (1)
73if (schemaObj is XmlSchemaType schemaType && schemaType.Name == typeQName.Name)
System\Runtime\Serialization\SchemaImporter.cs (9)
258XmlQualifiedName currentTypeName = new XmlQualifiedName(schemaType.Name, schema.TargetNamespace); 504|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType))) 1287throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNameAttribute)); 1290throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNamespaceAttribute)); 1295GenericInfo genInfo = new GenericInfo(new XmlQualifiedName(name, ns), type.Name); 1302throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidElement, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name)); 1308throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name)); 1311throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationForNestedLevelMustBeIncreasing, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name)); 1323throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidAttributeValue, typeElement.LocalName, typeElement.NamespaceURI, type.Name, typeNestedLevelsAttribute.Value, typeNestedLevelsAttribute.LocalName, Globals.TypeOfInt.Name));
System.Private.Xml (61)
System\Xml\Schema\Preprocessor.cs (6)
1502if (simpleType.Name != null) 1509if (simpleType.Name != null) 1512simpleType.SetQualifiedName(new XmlQualifiedName(simpleType.Name, _targetNamespace)); 1641if (complexType.Name != null) 1648if (complexType.Name != null) 1651complexType.SetQualifiedName(new XmlQualifiedName(complexType.Name, _targetNamespace));
System\Xml\Schema\SchemaCollectionpreProcessor.cs (6)
1169if (simpleType.Name != null) 1176if (simpleType.Name != null) 1179simpleType.SetQualifiedName(new XmlQualifiedName(simpleType.Name, _targetNamespace)); 1306if (complexType.Name != null) 1313if (complexType.Name != null) 1316complexType.SetQualifiedName(new XmlQualifiedName(complexType.Name, _targetNamespace));
System\Xml\Schema\XmlSchemaType.cs (1)
342get { return Name; }
System\Xml\Serialization\SchemaObjectWriter.cs (2)
562WriteAttribute(@"name", @"", ((string?)o.@Name)); 805WriteAttribute(@"name", @"", ((string?)o.@Name));
System\Xml\Serialization\SoapReflectionImporter.cs (5)
478itemTypeName = itemTypeMapping.TypeDesc.DataType!.Name!; 549mapping.TypeName = mapping.TypeDesc.DataType!.Name; 766if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 767return typeDesc.DataType.Name;
System\Xml\Serialization\XmlReflectionImporter.cs (6)
448string? xsdTypeName = valueTypeDesc.DataType == null ? valueTypeDesc.Name : valueTypeDesc.DataType.Name; 961if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 962return typeDesc.DataType.Name; 1045name = itemTypeMapping.TypeDesc!.DataType!.Name; 1180mapping.TypeName = mapping.TypeDesc.DataType!.Name;
System\Xml\Serialization\XmlSchemaExporter.cs (9)
49if (type != null && type.Name != null && type.Name.Length > 0) 109if (type.Name == name) 260if (type != null && type.Name == newTypeName) 409return new XmlQualifiedName(mapping.TypeDesc.DataType!.Name, UrtTypes.Namespace); 572qname = new XmlQualifiedName(type.Name, mapping.Namespace); 578qname = new XmlQualifiedName(mapping.TypeDesc.DataType!.Name, XmlSchema.Namespace); 643element.SchemaTypeName = new XmlQualifiedName(type.Name, mapping.Namespace); 1031XmlQualifiedName qname = new XmlQualifiedName(type.Name, mapping.Namespace);
System\Xml\Serialization\XmlSchemaImporter.cs (21)
45mapping.TypeName = mapping.TypeDesc!.DataType!.Name; 404if (type.DerivedFrom == baseName && TypesInUse[type.Name, schema.TargetNamespace] == null) 449throw new NotSupportedException(SR.Format(SR.XmlUnsupportedRedefine, type.Name, typeNs)); 466if (mapping != null && !string.IsNullOrEmpty(type.Name)) 557string typeName = string.IsNullOrEmpty(type.Name) ? GenerateUniqueTypeName(identifier, typeNs) : GenerateUniqueTypeName(identifier); 560structMapping.TypeName = string.IsNullOrEmpty(type.Name) ? null : identifier; 591throw new InvalidOperationException(SR.Format(SR.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc!.FullName, structMapping.Members[i].TypeDesc!.FullName, declaringMapping!.TypeDesc!.FullName)); 1296arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(arrayMapping.TypeDesc!.Name)}" : type.Name; 1313arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name)}" : type.Name; 1325if (!string.IsNullOrEmpty(type.Name)) 1592mapping.TypeName = mapping.TypeDesc.DataType!.Name; 1704mapping.TypeName = dataType.Name; 1745if (dataType.Name != null && dataType.Name.Length > 0) 1832mapping.TypeName = sourceTypeDesc.DataType!.Name; 1841if (!string.IsNullOrEmpty(dataType.Name)) 1843typeDesc = TypeScope.GetTypeDesc(dataType.Name, ns, flags); 1848mapping.TypeName = typeDesc.DataType!.Name; 1896if (!string.IsNullOrEmpty(dataType.Name))
System\Xml\Serialization\XmlSchemas.cs (3)
454return ((XmlSchemaType)o).Name; 473if (!string.IsNullOrEmpty(type.Name)) 530item = SR.Format(SR.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null);
System\Xml\Serialization\XmlSerializer.cs (2)
549return xmlReader.IsStartElement(typeDesc.DataType!.Name!, string.Empty); 851element.Name = typeDesc.DataType!.Name;