104 references to CSharpName
System.Private.Xml (104)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1459
throw CreateReadOnlyCollectionException(typeDesc.
CSharpName
);
System\Xml\Serialization\SourceInfo.cs (1)
52
return new SourceInfo($"(({td.
CSharpName
}){Source})", Arg, MemberInfo, td.Type!, ILG);
System\Xml\Serialization\XmlSerializationReader.cs (41)
2132
string choiceTypeFullName = mapping.ChoiceIdentifier.Mapping.TypeDesc.
CSharpName
;
2407
Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.
CSharpName
, mapping.TypeDesc.UseReflection));
2513
arraySource = $"(({mapping.TypeDesc!.
CSharpName
}){source})";
2644
Writer.Write(RaCodeGen.GetStringForCreateInstance(mappings[i].TypeDesc!.
CSharpName
, mappings[i].TypeDesc!.UseReflection, false, false));
2693
arraySource = $"(({mapping.TypeDesc!.
CSharpName
}){source})";
2753
string item = $"{(td.ArrayElementTypeDesc == null ? "object" : td.ArrayElementTypeDesc.
CSharpName
)}[]";
2769
Writer.Write(RaCodeGen.GetStringForMethod("c", td.
CSharpName
, "Add", useReflection));
2831
Writer.Write(mapping.TypeDesc!.
CSharpName
);
2938
Writer.Write(mapping.TypeDesc.
CSharpName
);
2980
string fullTypeName = mapping.TypeDesc.
CSharpName
;
3131
string fullTypeName = arrayMapping.TypeDesc.
CSharpName
;
3164
string typeName = useReflection ? "object" : nullableMapping.TypeDesc!.
CSharpName
;
3218
string typeName = useReflection ? "object" : structMapping.TypeDesc.
CSharpName
;
3245
Writer.Write(RaCodeGen.GetStringForCreateInstance(structMapping.TypeDesc.
CSharpName
, useReflection, false, false));
3492
if (anyFixups) WriteFixupMethod(fixupMethodName, members, structMapping.TypeDesc.
CSharpName
, structMapping.TypeDesc.UseReflection, true, "o");
3578
WriteQuotedCSharpString(typeDesc.
CSharpName
);
3585
Writer.Write(RaCodeGen.GetStringForCreateInstance(typeDesc.
CSharpName
, typeDesc.UseReflection, typeDesc.CannotNew, true));
3617
string fullTypeName = td.
CSharpName
;
3737
Writer.Write(xmlnsMember.Mapping.TypeDesc!.
CSharpName
);
3741
Writer.Write($"(({xmlnsMember.Mapping.TypeDesc.
CSharpName
}){xmlnsMember.ArraySource})");
3909
string typeDescFullName = typeDesc.
CSharpName
;
3913
WriteArrayLocalDecl(typeDesc.
CSharpName
,
3921
WriteArrayLocalDecl($"{member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.
CSharpName
}[]",
3953
WriteQuotedCSharpString(member.Mapping.TypeDesc.
CSharpName
);
4249
Writer.Write(RaCodeGen.GetStringForTypeof(td.
CSharpName
, td.UseReflection));
4253
Writer.Write(RaCodeGen.GetStringForTypeof(e.Mapping!.TypeDesc!.
CSharpName
, e.Mapping.TypeDesc.UseReflection));
4289
Writer.Write(RaCodeGen.GetStringForCreateInstance(e.Mapping.TypeDesc.
CSharpName
, e.Mapping.TypeDesc.UseReflection, false, true, $"({td.
CSharpName
}){checkTypeSource}"));
4394
string arrayTypeFullName = typeDesc.ArrayElementTypeDesc!.
CSharpName
;
4408
return RaCodeGen.GetStringForMethod(arrayName, typeDesc.
CSharpName
, "Add", useReflection);
4439
string arrayTypeFullName = typeDesc.ArrayElementTypeDesc.
CSharpName
;
4461
string choiceTypeName = member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.
CSharpName
;
4494
Writer.Write(typeDesc.
CSharpName
);
4652
Writer.Write(RaCodeGen.GetStringForCreateInstance(element.Mapping.TypeDesc.
CSharpName
, element.Mapping.TypeDesc.UseReflection, false, false));
4836
if (sm.TypeDesc!.
CSharpName
== "global::System.Xml.Linq.XElement")
4838
Writer.Write(RaCodeGen.GetStringForCreateInstance(sm.TypeDesc!.
CSharpName
, false, false, false, "\"default\""));
4842
Writer.Write(RaCodeGen.GetStringForCreateInstance(sm.TypeDesc!.
CSharpName
, sm.TypeDesc.UseReflection, sm.TypeDesc.CannotNew, false));
4875
string enumTypeName = choice.Mapping!.TypeDesc!.
CSharpName
;
4905
Writer.Write(RaCodeGen.GetStringForCreateInstance(derived.TypeDesc!.
CSharpName
, derived.TypeDesc.UseReflection, derived.TypeDesc.CannotNew, false));
5053
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
5105
Writer.Write(RaCodeGen.GetStringForTypeof(typeDesc.
CSharpName
, typeDesc.UseReflection));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
93
string choiceTypeFullName = mapping.ChoiceIdentifier.Mapping!.TypeDesc!.
CSharpName
;
440
arraySource = $"(({mapping.TypeDesc!.
CSharpName
}){source})";
1023
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
1328
string typeName = structMapping.TypeDesc!.
CSharpName
;
2136
WriteArrayLocalDecl(typeDesc.
CSharpName
,
2143
WriteArrayLocalDecl($"{member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.
CSharpName
}[]",
2175
ilg.Ldstr(GetCSharpString(member.Mapping.TypeDesc.
CSharpName
));
2596
string arrayTypeFullName = typeDesc.ArrayElementTypeDesc!.
CSharpName
;
3430
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
System\Xml\Serialization\XmlSerializationWriter.cs (44)
1622
string typeFullName = typeDesc.
CSharpName
;
1629
typeVariable = GenerateVariableName("array", typeDesc.
CSharpName
);
1646
typeVariable = GenerateVariableName(nameof(type), typeDesc.
CSharpName
);
1696
string typeFullName = mapping.TypeDesc!.
CSharpName
;
1734
string elementTypeFullName = typeDesc.ArrayElementTypeDesc!.
CSharpName
;
1906
return $"{mapping.TypeDesc!.
CSharpName
}.@{memberName}";
1908
string memberAccess = GetStringForEnumMember(mapping.TypeDesc!.
CSharpName
, memberName, useReflection);
1936
string typeFullName = typeDesc.
CSharpName
;
1943
return $"(({typeDesc.
CSharpName
}){obj}).@{memberName}";
1981
string typeFullName = arrayTypeDesc.IsCollection ? arrayTypeDesc.
CSharpName
: typeof(Array).FullName!;
2344
Writer.Write(RaCodeGen.GetStringForTypeof(typeMapping.TypeDesc.
CSharpName
, typeMapping.TypeDesc.UseReflection));
2429
Writer.Write(typeDesc.
CSharpName
);
2752
enumSource = $"(({mapping.Members[j].TypeDesc!.
CSharpName
})p[{j}])";
2865
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
2977
string fullTypeName = derived.TypeDesc!.
CSharpName
;
3016
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
3048
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
3051
WriteArrayTypeCompare("t", fullTypeName, mapping.TypeDesc.ArrayElementTypeDesc!.
CSharpName
, mapping.TypeDesc.UseReflection);
3085
string fullTypeName = mapping.TypeDesc!.
CSharpName
;
3158
xmlnsSource = $"(({member.TypeDesc!.
CSharpName
}){xmlnsSource})";
3295
string fullTypeName = memberTypeDesc.
CSharpName
;
3348
Writer.Write(RaCodeGen.GetReflectionVariable(memberTypeDesc.
CSharpName
, "System.Collections.Generic.IEnumerable*"));
3354
Writer.Write(arrayElementTypeDesc.
CSharpName
);
3366
Writer.Write(RaCodeGen.GetStringForMethodInvoke("a", memberTypeDesc.
CSharpName
, "GetEnumerator", memberTypeDesc.UseReflection));
3373
string arrayTypeFullName = arrayElementTypeDesc.
CSharpName
;
3390
string arrayTypeFullName = arrayElementTypeDesc.
CSharpName
;
3478
if (!typeDesc.UseReflection) source = $"(({typeDesc.
CSharpName
}){source})";
3499
string arrayTypeName = arrayTypeDesc.
CSharpName
;
3509
string choiceFullName = choice.Mapping!.TypeDesc!.
CSharpName
;
3558
Writer.Write(RaCodeGen.GetReflectionVariable(arrayTypeDesc.
CSharpName
, "System.Collections.Generic.IEnumerable*"));
3566
Writer.Write(arrayElementTypeDesc.
CSharpName
);
3580
Writer.Write(RaCodeGen.GetStringForMethodInvoke(arrayName, arrayTypeDesc.
CSharpName
, "GetEnumerator", arrayTypeDesc.UseReflection));
3586
string arrayTypeFullName = arrayElementTypeDesc.
CSharpName
;
3617
string arrayTypeFullName = arrayElementTypeDesc.
CSharpName
;
3621
string choiceFullName = choice.Mapping!.TypeDesc!.
CSharpName
;
3649
source = $"(({td.
CSharpName
}){source})";
3687
string fullTypeName = element.Mapping.TypeDesc.
CSharpName
;
3719
string fullTypeName = td.
CSharpName
;
3831
string fullTypeName = text.Mapping.TypeDesc.
CSharpName
;
3920
string fullTypeName = element.Mapping.TypeDesc!.BaseTypeDesc!.
CSharpName
;
3951
Writer.Write(RaCodeGen.GetStringForTypeof(arrayMapping.TypeDesc!.
CSharpName
, arrayMapping.TypeDesc.UseReflection));
3964
string fullTypeName = td.
CSharpName
;
4024
string fullTypeName = arrayMapping.TypeDesc!.
CSharpName
;
4098
Writer.Write(RaCodeGen.GetStringForTypeof(structMapping.TypeDesc!.
CSharpName
, structMapping.TypeDesc.UseReflection));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (8)
512
enumSource = $"(({mapping.Members[j].TypeDesc!.
CSharpName
})p[{j}])";
1160
string fullTypeName = memberTypeDesc.
CSharpName
;
1417
string arrayTypeName = arrayTypeDesc.
CSharpName
;
1432
string choiceFullName = choice.Mapping!.TypeDesc!.
CSharpName
;
1939
string fullTypeName = arrayMapping.TypeDesc!.
CSharpName
;
2549
Debug.Assert(typeName == arrayTypeDesc.
CSharpName
|| typeName == $"{arrayTypeDesc.
CSharpName
}[]");
2550
Type localType = (typeName == arrayTypeDesc.
CSharpName
) ? arrayTypeDesc.Type! : arrayTypeDesc.Type!.MakeArrayType();