41 writes to Name
dotnet-svcutil-lib (41)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
169
newAccessor.
Name
= this.Name;
238
Name
= Name.Substring("xml:".Length);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (5)
116
element.
Name
= element.Mapping.DefaultElementName;
160
element.
Name
= elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName);
729
attribute.
Name
= Accessor.EscapeQName(a.SoapAttribute == null || a.SoapAttribute.AttributeName.Length == 0 ? accessorName : a.SoapAttribute.AttributeName);
744
element.
Name
= XmlConvert.EncodeLocalName(a.SoapElement == null || a.SoapElement.ElementName.Length == 0 ? accessorName : a.SoapElement.ElementName);
758
element.
Name
= mapping.TypeName; //XmlConvert.EncodeLocalName(name == null || name.Length == 0 ? mapping.TypeName : name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
68
accessor.
Name
= name.Name;
94
accessor.
Name
= name;
156
accessor.
Name
= name;
180
accessor.
Name
= element.Name;
436
arrayAccessor.
Name
= element.Name;
454
itemAccessor.
Name
= Soap.UrType;
515
itemAccessor.
Name
= typeName.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (17)
214
element.
Name
= elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName);
277
element.
Name
= XmlConvert.EncodeLocalName(root.ElementName);
1505
arrayItemElement.
Name
= xmlArrayItem.ElementName.Length == 0 ? arrayItemElement.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlArrayItem.ElementName);
1586
attribute.
Name
= Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName);
1617
text.
Name
= accessorName; // unused except to make more helpful error messages
1638
element.
Name
= XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName);
1643
element.
Name
= xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName);
1687
element.
Name
= anyName;
1730
arrayElement.
Name
= XmlConvert.EncodeLocalName(a.XmlArray.ElementName.Length == 0 ? accessorName : a.XmlArray.ElementName);
1767
attribute.
Name
= Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName);
1794
text.
Name
= accessorName; // unused except to make more helpful error messages
1812
element.
Name
= XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName);
1882
element.
Name
= XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName);
1886
element.
Name
= xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName);
1931
element.
Name
= anyName;
2239
element.
Name
= mapping.DefaultElementName;
2266
element.
Name
= XmlConvert.EncodeLocalName(typeName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (9)
146
accessor.
Name
= typeName.Name;
216
accessor.
Name
= elementName;
290
accessor.
Name
= Accessor.EscapeName(name);
342
accessor.
Name
= element.Name;
969
choiceAccessor.
Name
= choiceIdentifier.Name;
976
choiceAccessor.
Name
= choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier);
1353
arrayAccessor.
Name
= element.Name;
1695
accessor.
Name
= name.Name;
1733
accessor.
Name
= attribute.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (1)
766
element.
Name
= typeDesc.DataType.Name;
123 references to Name
dotnet-svcutil-lib (123)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
230
if (arrayMapping.Elements[i].
Name
!= arrayMapping.Elements[i].Mapping.DefaultElementName)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (2)
183
throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.
Name
));
217
throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.
Name
));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (13)
129
return (Namespace == null ? "##any" : Namespace) + ":" +
Name
;
133
return Namespace == defaultNs ?
Name
: Namespace + ":" +
Name
;
169
newAccessor.Name = this.
Name
;
230
int colon =
Name
.LastIndexOf(':');
234
if (!
Name
.StartsWith("xml:", StringComparison.Ordinal))
236
throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidNameChars,
Name
));
238
Name =
Name
.Substring("xml:".Length);
651
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, TypeDesc.FullName, text.
Name
, text.Mapping.TypeDesc.FullName));
878
if (a[i].
Name
!= b[i].
Name
|| a[i].Namespace != b[i].Namespace || a[i].Form != b[i].Form || a[i].IsNullable != b[i].IsNullable)
901
return (Attribute.
Name
== mapping.Attribute.
Name
&& Attribute.Namespace == mapping.Attribute.Namespace && Attribute.Form == mapping.Attribute.Form);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
229
string elemName = Accessor.UnescapeName(element.
Name
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
299
element.Name = accessor.
Name
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
558
member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.
Name
));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (10)
89
ExportType(mapping.Attribute.Mapping, Accessor.UnescapeName(mapping.Attribute.
Name
), mapping.Attribute.Namespace, null, false);
96
ExportType(element.Mapping, Accessor.UnescapeName(element.
Name
), element.Namespace, null, false);
101
ExportType(mapping.Text.Mapping, Accessor.UnescapeName(mapping.Text.
Name
), mapping.Text.Namespace, null, false);
109
ExportType(element.Mapping, Accessor.UnescapeName(element.
Name
), element.Namespace, element, true);
437
AddWarningComment(comments, string.Format(ResXml.XmlDropArrayAttributeValue, attributeName, defaultValue.ToString(), ((ElementAccessor)accessor).
Name
));
663
AddRootMetadata(metadata, mapping.Mapping, Accessor.UnescapeName(mapping.Accessor.
Name
), mapping.Accessor.Namespace, mapping.Accessor);
690
string elementName = Accessor.UnescapeName(arrayElement.
Name
);
718
string attrName = Accessor.UnescapeName(attribute.
Name
);
747
string elemName = Accessor.UnescapeName(element.
Name
);
784
string elemName = Accessor.UnescapeName(element.
Name
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (2)
65
get { return Microsoft.Xml.Serialization.Accessor.UnescapeName(Accessor.
Name
); }
74
get { return Accessor.
Name
; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (2)
45
get { return Accessor.UnescapeName(Accessor.
Name
); }
54
get { return Accessor.
Name
; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (24)
308
if (accessor.Any && accessor.
Name
.Length == 0)
311
Accessor existing = (Accessor)accessors[accessor.
Name
, accessor.Namespace];
315
accessors.Add(accessor.
Name
, accessor.Namespace, accessor);
335
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessorDefault, accessor.
Name
, accessor.Namespace, value1, value2));
340
throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.
Name
, accessor.Namespace));
346
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.
Name
, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
363
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAttributeAccessor, accessor.
Name
, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
365
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.
Name
, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
871
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, typeName, member.Text.
Name
, member.Text.Mapping.TypeDesc.FullName));
1693
if (element.
Name
.Length > 0)
1706
elements.Add(element.
Name
, element.Namespace, element);
1938
if (element.
Name
.Length > 0)
1956
elements.Add(element.
Name
, element.Namespace, element);
1967
throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.Elements[0].
Name
));
1986
if (element.Any && element.
Name
.Length == 0)
2001
if (element.
Name
== choiceName)
2013
if (element.Any && element.
Name
.Length == 0)
2020
string id = element.Namespace != null && element.Namespace.Length > 0 ? element.Namespace + ":" + element.
Name
: element.
Name
;
2022
throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.
Name
, element.Namespace));
2176
Accessor existing = (Accessor)scope[accessor.
Name
, accessor.Namespace];
2181
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.
Name
, existing.Namespace));
2189
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.
Name
, existing.Namespace));
2194
scope[accessor.
Name
, accessor.Namespace] = accessor;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (13)
67
type.Name = xmlMembersMapping.Accessor.
Name
;
71
return (new XmlQualifiedName(xmlMembersMapping.Accessor.
Name
, xmlMembersMapping.Accessor.Namespace));
103
throw new InvalidOperationException(string.Format(ResXml.XmlBareAttributeMember, member.Attribute.
Name
));
105
throw new InvalidOperationException(string.Format(ResXml.XmlBareTextMember, member.Text.
Name
));
110
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.Elements[0].
Name
));
262
if (accessor.Any && accessor.
Name
.Length == 0)
267
element.Name = accessor.
Name
;
735
attribute.RefName = new XmlQualifiedName(accessor.
Name
, XmlReservedNs.NsXml);
772
attribute.Name = accessor.
Name
;
797
refAttribute.RefName = new XmlQualifiedName(accessor.
Name
, accessor.Namespace);
844
if (accessor.Any && accessor.
Name
.Length == 0)
863
element.Name = accessor.
Name
;
891
refElement.RefName = new XmlQualifiedName(accessor.
Name
, accessor.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (10)
260
member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.
Name
));
979
members.Add(choiceAccessor.
Name
, choiceIdentifier);
994
if (item.
Name
!= itemMapping.DefaultElementName)
1092
ElementAccessor scopeElement = (ElementAccessor)scope[element.
Name
, element.Namespace];
1097
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.
Name
, element.Namespace));
1101
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.
Name
, element.Namespace));
1107
scope[element.
Name
, element.Namespace] = element;
1527
string name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.
Name
));
1575
member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.
Name
));
1917
string constantName = CodeIdentifier.MakeValid(element.
Name
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
342
ilg.Ldstr(mapping.Accessor.
Name
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (22)
1877
string methodName = NextMethodName(element.
Name
);
1898
WriteStartElement(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), mapping.IsSoap);
2034
WriteQuotedCSharpString(member.Elements[0].
Name
);
2083
string methodName = NextMethodName(element.
Name
);
2097
WriteEncodedNullTag(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""));
2099
WriteLiteralNullTag(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""));
2102
WriteEmptyTag(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""));
2571
WriteQuotedCSharpString(attribute.
Name
);
2695
WriteQuotedCSharpString(attribute.
Name
);
2743
WritePrimitive("WriteAttribute", attribute.
Name
, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false);
2936
if (element.
Name
!= null && element.
Name
.Length > 0)
3038
WriteQuotedCSharpString(element.
Name
);
3171
string name = writeAccessor ? element.
Name
: element.Mapping.TypeName;
3172
string ns = element.Any && element.
Name
.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : "");
3192
WriteLiteralNullTag(element.
Name
, element.Form == XmlSchemaForm.Qualified ? element.Namespace : "");
3509
WriteLiteralNullTag(element.
Name
, element.Form == XmlSchemaForm.Qualified ? element.Namespace : "");
3667
if (element.Any && element.
Name
.Length == 0)
3683
if (element.
Name
== choiceName)
3697
if (element.Any && element.
Name
.Length == 0)
3703
throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.
Name
, element.
Name
, element.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (20)
361
string methodName = NextMethodName(element.
Name
);
401
WriteStartElement(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), false);
558
string methodName = NextMethodName(element.
Name
);
581
WriteLiteralNullTag(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""));
584
WriteEmptyTag(element.
Name
, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""));
1246
ilg.Ldstr(attribute.
Name
);
1396
ilg.Ldstr(attribute.
Name
);
1465
WritePrimitive("WriteAttribute", attribute.
Name
, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false);
1681
if (element.
Name
!= null && element.
Name
.Length > 0)
1813
ilg.Ldstr(element.
Name
);
2010
string name = writeAccessor ? element.
Name
: element.Mapping.TypeName;
2011
string ns = element.Any && element.
Name
.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : "");
2041
WriteLiteralNullTag(element.
Name
, element.Form == XmlSchemaForm.Qualified ? element.Namespace : "");
2320
WriteLiteralNullTag(element.
Name
, element.Form == XmlSchemaForm.Qualified ? element.Namespace : "");
2383
if (element.Any && element.
Name
.Length == 0)
2397
if (element.
Name
== choiceName)
2409
if (element.Any && element.
Name
.Length == 0)
2415
throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.
Name
, element.
Name
, element.Namespace));