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;
712
defaultXmlType.
Name
= localName;
773
type.
Name
= localName;
788
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;
603
type.
Name
= mapping.TypeName;
976
type.
Name
= mapping.TypeName;
1144
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)
1039
throw ExceptionBuilder.CircularComplexType(ct.
Name
!);
2387
if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).
Name
) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS)
System.Private.DataContractSerialization (12)
System\Runtime\Serialization\SchemaExporter.cs (2)
572
qname = new XmlQualifiedName(((XmlSchemaType)item).
Name
, schema.TargetNamespace);
654
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)
257
XmlQualifiedName currentTypeName = new XmlQualifiedName(schemaType.
Name
, schema.TargetNamespace);
503
|| (string.IsNullOrEmpty(type.
Name
) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType)))
1286
throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationAttributeNotFound, type.
Name
, Globals.GenericNameAttribute));
1289
throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationAttributeNotFound, type.
Name
, Globals.GenericNamespaceAttribute));
1294
GenericInfo genInfo = new GenericInfo(new XmlQualifiedName(name, ns), type.
Name
);
1301
throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidElement, argumentElement.LocalName, argumentElement.NamespaceURI, type.
Name
));
1307
throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.
Name
, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name));
1310
throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationForNestedLevelMustBeIncreasing, argumentElement.LocalName, argumentElement.NamespaceURI, type.
Name
));
1322
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)
1166
if (simpleType.
Name
!= null)
1173
if (simpleType.
Name
!= null)
1176
simpleType.SetQualifiedName(new XmlQualifiedName(simpleType.
Name
, _targetNamespace));
1303
if (complexType.
Name
!= null)
1310
if (complexType.
Name
!= null)
1313
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
;
965
if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.
Name
!= null && typeDesc.DataType.
Name
.Length > 0)
966
return typeDesc.DataType.
Name
;
1049
name = itemTypeMapping.TypeDesc!.DataType!.
Name
;
1184
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);
568
qname = new XmlQualifiedName(type.
Name
, mapping.Namespace);
574
qname = new XmlQualifiedName(mapping.TypeDesc.DataType!.
Name
, XmlSchema.Namespace);
639
element.SchemaTypeName = new XmlQualifiedName(type.
Name
, mapping.Namespace);
1026
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)
452
return ((XmlSchemaType)o).
Name
;
471
if (!string.IsNullOrEmpty(type.
Name
))
528
item = SR.Format(SR.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).
Name
, null);
System\Xml\Serialization\XmlSerializer.cs (2)
548
return xmlReader.IsStartElement(typeDesc.DataType!.
Name
!, string.Empty);
850
element.Name = typeDesc.DataType!.
Name
;