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