28 writes to Name
System.Xml (28)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
605
member.
Name
= xmlReflectionMember.MemberName;
621
member.
Name
= model.Name;
System\Xml\Serialization\SoapSchemaImporter.cs (3)
497
member.
Name
= CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
498
member.
Name
= members.AddUnique(member.Name, member);
501
member.
Name
= members.AddUnique(member.Name, member);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1195
member.
Name
= xmlReflectionMember.MemberName;
1221
member.
Name
= model.Name;
System\Xml\Serialization\XmlSchemaImporter.cs (21)
197
mapping.Members[0].
Name
= elementName;
238
member.
Name
= CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
239
member.
Name
= memberScope.AddUnique(member.Name, member);
816
member.
Name
= membersScope.AddUnique(groupRepeats ? "Items" : "Item", member);
834
choiceIdentifier.
Name
= member.ChoiceIdentifier.MemberName;
851
choiceAccessor.Name = choiceIdentifier.
Name
= member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier);
1076
member.
Name
= members.MakeRightCase("Text");
1083
member.
Name
= members.MakeRightCase("Text");
1087
member.
Name
= members.MakeRightCase("Value");
1090
member.
Name
= membersScope.AddUnique(member.Name, member);
1099
member.
Name
= membersScope.MakeRightCase("Any");
1100
member.
Name
= membersScope.AddUnique(member.Name, member);
1334
member.
Name
= membersScope.AddUnique(name, member);
1338
member.
Name
= membersScope.AddUnique(member.Name, member);
1374
member.
Name
= CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
1375
member.
Name
= membersScope.AddUnique(member.Name, member);
1378
member.
Name
= membersScope.AddUnique(member.Name, member);
1401
member.
Name
= membersScope.MakeRightCase("AnyAttr");
1402
member.
Name
= membersScope.AddUnique(member.Name, member);
1454
member.
Name
= CodeIdentifier.MakeValid(xmlnsMemberName == null ? "Namespaces" : xmlnsMemberName);
1455
member.
Name
= membersScope.AddUnique(member.Name, member);
104 references to Name
System.Xml (104)
System\Xml\Serialization\Mappings.cs (6)
510
if (members[i].
Name
== member.
Name
) {
512
throw new InvalidOperationException(Res.GetString(Res.XmlHiddenMember, parent, member.
Name
, member.TypeDesc.FullName, this.TypeName, members[i].
Name
, members[i].TypeDesc.FullName));
514
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidXmlOverride, parent, member.
Name
, this.TypeName, members[i].
Name
));
System\Xml\Serialization\SoapCodeExporter.cs (6)
212
bool sameName = ((elemName == member.
Name
) && !forceUseMemberName);
221
CodeMemberField field = new CodeMemberField(fieldType, member.
Name
);
228
field = new CodeMemberField(typeof(bool).FullName, member.
Name
+ "Specified");
238
string fieldName = memberScope.AddUnique(CodeExporter.MakeFieldName(member.
Name
), member);
245
CodeMemberProperty prop = CreatePropertyDeclaration(field, member.
Name
, fieldType);
255
prop = CreatePropertyDeclaration(field, member.
Name
+ "Specified", typeof(bool).FullName);
System\Xml\Serialization\SoapSchemaImporter.cs (4)
498
member.Name = members.AddUnique(member.
Name
, member);
499
if (member.
Name
.EndsWith("Specified", StringComparison.Ordinal)) {
500
string name = member.
Name
;
501
member.Name = members.AddUnique(member.
Name
, member);
System\Xml\Serialization\Types.cs (3)
997
memberInfos[mappings[i].
Name
] = mappings[i].MemberInfo;
1001
memberInfos[mappings[i].
Name
+ "Specified"] = mappings[i].CheckSpecifiedMemberInfo;
1036
if (replaceList.TryGetValue(mappings[i].
Name
, out mi))
System\Xml\Serialization\XmlCodeExporter.cs (7)
627
bool sameName = attrName == member.
Name
&& !forceUseMemberName;
651
bool sameName = ((elemName == member.
Name
) && !forceUseMemberName);
706
CodeMemberField field = new CodeMemberField(fieldType, member.
Name
);
713
field = new CodeMemberField(typeof(bool).FullName, member.
Name
+ "Specified");
723
string fieldName = memberScope.AddUnique(MakeFieldName(member.
Name
), member);
730
CodeMemberProperty prop = CreatePropertyDeclaration(field, member.
Name
, fieldType);
740
prop = CreatePropertyDeclaration(field, member.
Name
+ "Specified", typeof(bool).FullName);
System\Xml\Serialization\XmlMemberMapping.cs (1)
66
get { return mapping.
Name
; }
System\Xml\Serialization\XmlReflectionImporter.cs (3)
797
throw new InvalidOperationException(Res.GetString(Res.XmlSequenceUnique, member.SequenceId.ToString(CultureInfo.InvariantCulture), "Order", member.
Name
));
802
throw new InvalidOperationException(Res.GetString(Res.XmlSequenceInconsistent, "Order", member.
Name
));
1724
throw new InvalidOperationException(Res.GetString(Res.XmlRpcLitXmlns, accessor.
Name
));
System\Xml\Serialization\XmlSchemaExporter.cs (2)
509
AddXmlnsAnnotation(type, mapping.XmlnsMember.
Name
);
903
AddXmlnsAnnotation(type, mapping.XmlnsMember.
Name
);
System\Xml\Serialization\XmlSchemaImporter.cs (23)
239
member.Name = memberScope.AddUnique(member.
Name
, member);
610
throw new InvalidOperationException(Res.GetString(Res.XmlIllegalOverride, type.Name, baseMember.
Name
, baseMember.TypeDesc.FullName, structMapping.Members[i].TypeDesc.FullName, declaringMapping.TypeDesc.FullName));
818
members.Add(member.
Name
, member);
824
member.ChoiceIdentifier.MemberName = member.
Name
+ "ElementName";
826
member.ChoiceIdentifier.Mapping = ImportEnumeratedChoice(member.Elements, ns, member.
Name
+ "ChoiceType");
845
choiceAccessor.Name = choiceIdentifier.
Name
;
1090
member.Name = membersScope.AddUnique(member.
Name
, member);
1091
members.Add(member.
Name
, member);
1100
member.Name = membersScope.AddUnique(member.
Name
, member);
1101
members.Add(member.
Name
, member);
1336
if (member.
Name
.EndsWith("Specified", StringComparison.Ordinal)) {
1337
name = member.
Name
;
1338
member.Name = membersScope.AddUnique(member.
Name
, member);
1341
members.Add(member.
Name
, member);
1375
member.Name = membersScope.AddUnique(member.
Name
, member);
1376
if (member.
Name
.EndsWith("Specified", StringComparison.Ordinal)) {
1377
string name = member.
Name
;
1378
member.Name = membersScope.AddUnique(member.
Name
, member);
1381
members.Add(member.
Name
, member);
1402
member.Name = membersScope.AddUnique(member.
Name
, member);
1403
members.Add(member.
Name
, member);
1455
member.Name = membersScope.AddUnique(member.
Name
, member);
1456
members.Add(member.
Name
, member);
System\Xml\Serialization\XmlSerializationReader.cs (12)
2310
if (mappings[j].
Name
== member.ChoiceIdentifier.MemberName) {
2375
string nameSpecified = mapping.
Name
+ "Specified";
2377
if (mappings[j].
Name
== nameSpecified) {
2534
string nameSpecified = mapping.
Name
+ "Specified";
2536
if (mappings[j].
Name
== nameSpecified) {
3098
CodeIdentifier.CheckValidIdentifier(mapping.
Name
);
3099
string source = RaCodeGen.GetStringForMember("o", mapping.
Name
, structMapping.TypeDesc);
3105
member.CheckSpecifiedSource = RaCodeGen.GetStringForMember("o", mapping.
Name
+ "Specified", structMapping.TypeDesc);
3122
throw new InvalidOperationException(Res.GetString(Res.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.
Name
, declaringMapping.TypeDesc.FullName, "Order"));
3224
CodeIdentifier.CheckValidIdentifier(mapping.
Name
);
3225
string source = RaCodeGen.GetStringForMember("o", mapping.
Name
, structMapping.TypeDesc);
3228
member.CheckSpecifiedSource = RaCodeGen.GetStringForMember("o", mapping.
Name
+ "Specified", structMapping.TypeDesc);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
380
if (mappings[j].
Name
== member.ChoiceIdentifier.MemberName) {
466
string nameSpecified = mapping.
Name
+ "Specified";
468
if (mappings[j].
Name
== nameSpecified) {
1572
CodeIdentifier.CheckValidIdentifier(mapping.
Name
);
1573
string source = RaCodeGen.GetStringForMember("o", mapping.
Name
, structMapping.TypeDesc);
1579
member.CheckSpecifiedSource = RaCodeGen.GetStringForMember("o", mapping.
Name
+ "Specified", structMapping.TypeDesc);
1596
throw new InvalidOperationException(Res.GetString(Res.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.
Name
, declaringMapping.TypeDesc.FullName, "Order"));
System\Xml\Serialization\XmlSerializationWriter.cs (18)
1653
string memberNameSpecified = member.
Name
+ "Specified";
1655
if (mapping.Members[j].
Name
== memberNameSpecified) {
1700
string memberNameSpecified = member.
Name
+ "Specified";
1703
if (mapping.Members[j].
Name
== memberNameSpecified) {
1729
if (mapping.Members[j].
Name
== member.ChoiceIdentifier.MemberName) {
2094
CodeIdentifier.CheckValidIdentifier(member.
Name
);
2095
xmlnsSource = RaCodeGen.GetStringForMember("o", member.
Name
, mapping.TypeDesc);
2123
CodeIdentifier.CheckValidIdentifier(m.
Name
);
2126
string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize"+m.
Name
, mapping.TypeDesc.UseReflection);
2134
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+"Specified", mapping.TypeDesc);
2140
WriteMember(RaCodeGen.GetStringForMember("o", m.
Name
, mapping.TypeDesc), m.Attribute, m.TypeDesc, "o");
2157
CodeIdentifier.CheckValidIdentifier(m.
Name
);
2162
string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize"+m.
Name
, mapping.TypeDesc.UseReflection);
2170
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+"Specified", mapping.TypeDesc);
2182
WriteMember(RaCodeGen.GetStringForMember("o", m.
Name
, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation, m.Text, m.ChoiceIdentifier, m.TypeDesc, true);
3434
string memberVariable = WriteMemberInfo(type, typeFullName, typeVariable, member.
Name
);
3436
string memberName = "ShouldSerialize"+member.
Name
;
3440
string memberName = member.
Name
+"Specified";
System\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
388
string memberNameSpecified = member.
Name
+ "Specified";
390
if (mapping.Members[j].
Name
== memberNameSpecified) {
437
string memberNameSpecified = member.
Name
+ "Specified";
440
if (mapping.Members[j].
Name
== memberNameSpecified) {
470
if (mapping.Members[j].
Name
== member.ChoiceIdentifier.MemberName) {
994
CodeIdentifier.CheckValidIdentifier(member.
Name
);
995
xmlnsSource = RaCodeGen.GetStringForMember("o", member.
Name
, mapping.TypeDesc);
1040
CodeIdentifier.CheckValidIdentifier(m.
Name
);
1047
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+ "Specified", mapping.TypeDesc);
1066
CodeIdentifier.CheckValidIdentifier(m.
Name
);
1075
string memberGet = RaCodeGen.GetStringForMember("o", m.
Name
+ "Specified", mapping.TypeDesc);
2259
return new SourceInfo(GetStringForMember(obj, member.
Name
, typeDesc), obj, memberInfo, member.TypeDesc.Type, ilg);