28 writes to Name
dotnet-svcutil-lib (28)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
681
member.
Name
= xmlReflectionMember.MemberName;
698
member.
Name
= model.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (3)
558
member.
Name
= CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
559
member.
Name
= members.AddUnique(member.Name, member);
563
member.
Name
= members.AddUnique(member.Name, member);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
1373
member.
Name
= xmlReflectionMember.MemberName;
1402
member.
Name
= model.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (21)
214
mapping.Members[0].
Name
= elementName;
260
member.
Name
= CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
261
member.
Name
= memberScope.AddUnique(member.Name, member);
935
member.
Name
= membersScope.AddUnique(groupRepeats ? "Items" : "Item", member);
956
choiceIdentifier.
Name
= member.ChoiceIdentifier.MemberName;
976
choiceAccessor.Name = choiceIdentifier.
Name
= member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier);
1246
member.
Name
= members.MakeRightCase("Text");
1255
member.
Name
= members.MakeRightCase("Text");
1260
member.
Name
= members.MakeRightCase("Value");
1263
member.
Name
= membersScope.AddUnique(member.Name, member);
1273
member.
Name
= membersScope.MakeRightCase("Any");
1274
member.
Name
= membersScope.AddUnique(member.Name, member);
1528
member.
Name
= membersScope.AddUnique(name, member);
1533
member.
Name
= membersScope.AddUnique(member.Name, member);
1575
member.
Name
= CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
1576
member.
Name
= membersScope.AddUnique(member.Name, member);
1580
member.
Name
= membersScope.AddUnique(member.Name, member);
1605
member.
Name
= membersScope.MakeRightCase("AnyAttr");
1606
member.
Name
= membersScope.AddUnique(member.Name, member);
1667
member.
Name
= CodeIdentifier.MakeValid(xmlnsMemberName == null ? "Namespaces" : xmlnsMemberName);
1668
member.
Name
= membersScope.AddUnique(member.Name, member);
87 references to Name
dotnet-svcutil-lib (87)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (6)
607
if (_members[i].
Name
== member.
Name
)
610
throw new InvalidOperationException(string.Format(ResXml.XmlHiddenMember, parent, member.
Name
, member.TypeDesc.FullName, this.TypeName, _members[i].
Name
, _members[i].TypeDesc.FullName));
613
throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlOverride, parent, member.
Name
, this.TypeName, _members[i].
Name
));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (6)
230
bool sameName = ((elemName == member.
Name
) && !forceUseMemberName);
241
CodeMemberField field = new CodeMemberField(fieldType, member.
Name
);
249
field = new CodeMemberField(typeof(bool).FullName, member.
Name
+ "Specified");
260
string fieldName = memberScope.AddUnique(CodeExporter.MakeFieldName(member.
Name
), member);
267
CodeMemberProperty prop = CreatePropertyDeclaration(field, member.
Name
, fieldType);
278
prop = CreatePropertyDeclaration(field, member.
Name
+ "Specified", typeof(bool).FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (4)
559
member.Name = members.AddUnique(member.
Name
, member);
560
if (member.
Name
.EndsWith("Specified", StringComparison.Ordinal))
562
string name = member.
Name
;
563
member.Name = members.AddUnique(member.
Name
, member);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (3)
1160
memberInfos[mappings[i].
Name
] = mappings[i].MemberInfo;
1164
memberInfos[mappings[i].
Name
+ "Specified"] = mappings[i].CheckSpecifiedMemberInfo;
1199
if (replaceList.TryGetValue(mappings[i].
Name
, out mi))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (9)
721
bool sameName = attrName == member.
Name
&& !forceUseMemberName && member.
Name
!= "System";
748
bool sameName = (elemName == member.
Name
) && !forceUseMemberName && member.
Name
!= "System";
812
CodeMemberField field = new CodeMemberField(fieldType, member.
Name
);
820
field = new CodeMemberField(typeof(bool).FullName, member.
Name
+ "Specified");
831
string fieldName = memberScope.AddUnique(MakeFieldName(member.
Name
), member);
838
CodeMemberProperty prop = CreatePropertyDeclaration(field, member.
Name
, fieldType);
849
prop = CreatePropertyDeclaration(field, member.
Name
+ "Specified", typeof(bool).FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (1)
72
get { return _mapping.
Name
; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (3)
912
throw new InvalidOperationException(string.Format(ResXml.XmlSequenceUnique, member.SequenceId.ToString(), "Order", member.
Name
));
918
throw new InvalidOperationException(string.Format(ResXml.XmlSequenceInconsistent, "Order", member.
Name
));
1970
throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitXmlns, accessor.
Name
));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (2)
587
AddXmlnsAnnotation(type, mapping.XmlnsMember.
Name
);
1058
AddXmlnsAnnotation(type, mapping.XmlnsMember.
Name
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (23)
261
member.Name = memberScope.AddUnique(member.
Name
, member);
696
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalOverride, type.Name, baseMember.
Name
, baseMember.TypeDesc.FullName, structMapping.Members[i].TypeDesc.FullName, declaringMapping.TypeDesc.FullName));
938
members.Add(member.
Name
, member);
945
member.ChoiceIdentifier.MemberName = member.
Name
+ "ElementName";
947
member.ChoiceIdentifier.Mapping = ImportEnumeratedChoice(member.Elements, ns, member.
Name
+ "ChoiceType");
969
choiceAccessor.Name = choiceIdentifier.
Name
;
1263
member.Name = membersScope.AddUnique(member.
Name
, member);
1264
members.Add(member.
Name
, member);
1274
member.Name = membersScope.AddUnique(member.
Name
, member);
1275
members.Add(member.
Name
, member);
1530
if (member.
Name
.EndsWith("Specified", StringComparison.Ordinal))
1532
name = member.
Name
;
1533
member.Name = membersScope.AddUnique(member.
Name
, member);
1536
members.Add(member.
Name
, member);
1576
member.Name = membersScope.AddUnique(member.
Name
, member);
1577
if (member.
Name
.EndsWith("Specified", StringComparison.Ordinal))
1579
string name = member.
Name
;
1580
member.Name = membersScope.AddUnique(member.
Name
, member);
1583
members.Add(member.
Name
, member);
1606
member.Name = membersScope.AddUnique(member.
Name
, member);
1607
members.Add(member.
Name
, member);
1668
member.Name = membersScope.AddUnique(member.
Name
, member);
1669
members.Add(member.
Name
, member);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (18)
1927
string memberNameSpecified = member.
Name
+ "Specified";
1930
if (mapping.Members[j].
Name
== memberNameSpecified)
1980
string memberNameSpecified = member.
Name
+ "Specified";
1984
if (mapping.Members[j].
Name
== memberNameSpecified)
2014
if (mapping.Members[j].
Name
== member.ChoiceIdentifier.MemberName)
2419
CodeIdentifier.CheckValidIdentifier(member.
Name
);
2420
xmlnsSource = RaCodeGen.GetStringForMember("o", member.
Name
, mapping.TypeDesc);
2454
CodeIdentifier.CheckValidIdentifier(m.
Name
);
2458
string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize" + m.
Name
, mapping.TypeDesc.UseReflection);
2467
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+ "Specified", mapping.TypeDesc);
2473
WriteMember(RaCodeGen.GetStringForMember("o", m.
Name
, mapping.TypeDesc), m.Attribute, m.TypeDesc, "o");
2493
CodeIdentifier.CheckValidIdentifier(m.
Name
);
2499
string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize" + m.
Name
, mapping.TypeDesc.UseReflection);
2508
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+ "Specified", mapping.TypeDesc);
2521
WriteMember(RaCodeGen.GetStringForMember("o", m.
Name
, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation, m.Text, m.ChoiceIdentifier, m.TypeDesc, true);
3924
string memberVariable = WriteMemberInfo(type, typeFullName, typeVariable, member.
Name
);
3927
string memberName = "ShouldSerialize" + member.
Name
;
3932
string memberName = member.
Name
+ "Specified";
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
428
string memberNameSpecified = member.
Name
+ "Specified";
431
if (mapping.Members[j].
Name
== memberNameSpecified)
483
string memberNameSpecified = member.
Name
+ "Specified";
487
if (mapping.Members[j].
Name
== memberNameSpecified)
521
if (mapping.Members[j].
Name
== member.ChoiceIdentifier.MemberName)
1078
CodeIdentifier.CheckValidIdentifier(member.
Name
);
1079
xmlnsSource = RaCodeGen.GetStringForMember("o", member.
Name
, mapping.TypeDesc);
1128
CodeIdentifier.CheckValidIdentifier(m.
Name
);
1137
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+ "Specified", mapping.TypeDesc);
1159
CodeIdentifier.CheckValidIdentifier(m.
Name
);
1170
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+ "Specified", mapping.TypeDesc);
2475
return new SourceInfo(GetStringForMember(obj, member.
Name
, typeDesc), obj, memberInfo, member.TypeDesc.Type, ilg);