1 instantiation of ReflectionAwareILGen
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationILGen.cs (1)
47
_raCodeGen = new
ReflectionAwareILGen
();
41 references to ReflectionAwareILGen
System.Private.Xml (41)
System\Xml\Serialization\XmlSerializationILGen.cs (3)
26
private readonly
ReflectionAwareILGen
_raCodeGen;
54
internal
ReflectionAwareILGen
RaCodeGen { get { return _raCodeGen; } }
142
return
ReflectionAwareILGen
.GetCSharpString(value);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (21)
96
string init = $"{a} = {castString}EnsureArrayIndex({a}, {c}, {
ReflectionAwareILGen
.GetStringForTypeof(choiceTypeFullName)});";
97
_choiceArraySource = init +
ReflectionAwareILGen
.GetStringForArrayMember(a, $"{c}++");
200
ReflectionAwareILGen
.WriteReflectionInit(scope);
326
ilg.Ldstr(
ReflectionAwareILGen
.GetCSharpString(expectedElement));
380
return
ReflectionAwareILGen
.GetStringForMember(parent, mapping.ChoiceIdentifier.MemberName);
621
ReflectionAwareILGen
.ILGenForCreateInstance(ilg, mappings[i].TypeDesc!.Type!, false, false);
1256
ReflectionAwareILGen
.ILGenForCreateInstance(ilg, td.Type!, false, false);
1541
string source =
ReflectionAwareILGen
.GetStringForMember("o", mapping.Name);
1547
member.CheckSpecifiedSource =
ReflectionAwareILGen
.GetStringForMember("o", $"{mapping.Name}Specified");
2182
ReflectionAwareILGen
.ILGenForCreateInstance(ilg, member.Mapping.TypeDesc.Type!, typeDesc.CannotNew, true);
2224
return
ReflectionAwareILGen
.GetQuotedCSharpString(qnames);
2597
init = $"{init}{a} = ({arrayTypeFullName}[])EnsureArrayIndex({a}, {c}, {
ReflectionAwareILGen
.GetStringForTypeof(arrayTypeFullName)});";
2598
string arraySource =
ReflectionAwareILGen
.GetStringForArrayMember(a, $"{c}++");
2608
return
ReflectionAwareILGen
.GetStringForMethod(arrayName, "Add");
3229
ReflectionAwareILGen
.ILGenForCreateInstance(ilg, sm.TypeDesc!.Type!, sm.TypeDesc.CannotNew, false);
3262
ReflectionAwareILGen
.ILGenForEnumMember(ilg, choice.Mapping!.TypeDesc!.Type!, choice.MemberIds[elementIndex]);
3300
ReflectionAwareILGen
.ILGenForCreateInstance(ilg, derived.TypeDesc!.Type!, derived.TypeDesc.CannotNew, false);
3441
ReflectionAwareILGen
.ILGenForCreateInstance(ilg, mapping.TypeDesc.Type!, mapping.TypeDesc.CannotNew, true);
3480
ReflectionAwareILGen
.WriteArrayLocalDecl(typeName, variableName, new SourceInfo(initValue, initValue, null, arrayTypeDesc.Type, ilg), arrayTypeDesc);
3485
ReflectionAwareILGen
.WriteCreateInstance(source, ctorInaccessible, type, ilg);
3490
ReflectionAwareILGen
.WriteLocalDecl(variableName, initValue);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (17)
44
ReflectionAwareILGen
.WriteReflectionInit(scope);
653
ReflectionAwareILGen
.ILGenForEnumLongValue(ilg, "v");
1028
xmlnsSource =
ReflectionAwareILGen
.GetStringForMember("o", member.Name);
1082
string memberGet =
ReflectionAwareILGen
.GetStringForMember("o", $"{m.Name}Specified");
1086
WriteMember(
ReflectionAwareILGen
.GetSourceForMember("o", m, ilg), m.Attribute, m.TypeDesc!, "o");
1115
string memberGet =
ReflectionAwareILGen
.GetStringForMember("o", $"{m.Name}Specified");
1124
choiceSource =
ReflectionAwareILGen
.GetStringForMember("o", m.ChoiceIdentifier.MemberName);
1127
WriteMember(
ReflectionAwareILGen
.GetSourceForMember("o", m, m.MemberInfo, ilg), choiceSource, m.ElementsSortedByDerivation!, m.Text, m.ChoiceIdentifier, m.TypeDesc!, true);
1212
WriteLocalDecl(aiVar,
ReflectionAwareILGen
.GetStringForArrayMember(aVar, iVar), arrayElementTypeDesc.Type!);
1549
WriteLocalDecl(arrayNamePlusI,
ReflectionAwareILGen
.GetStringForArrayMember(arrayName, iPlusArrayName), arrayElementTypeDesc.Type!);
1552
WriteLocalDecl($"{choiceName}i",
ReflectionAwareILGen
.GetStringForArrayMember(choiceName, iPlusArrayName), choice.Mapping!.TypeDesc!.Type!);
1558
WriteElements(new SourceInfo(
ReflectionAwareILGen
.GetStringForArrayMember(arrayName, iPlusArrayName), null, null, arrayElementTypeDesc.Type, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable);
2217
ReflectionAwareILGen
.WriteLocalDecl(variableName, new SourceInfo(initValue, initValue, null, type, ilg));
2222
ReflectionAwareILGen
.WriteArrayLocalDecl(typeName, variableName, initValue, arrayTypeDesc);
2226
ReflectionAwareILGen
.WriteTypeCompare(variable, type, ilg);
2231
ReflectionAwareILGen
.WriteInstanceOf(source, type, ilg);
2235
ReflectionAwareILGen
.WriteArrayTypeCompare(variable, arrayType, ilg);