1 write to ILG
System.Private.Xml (1)
System\Xml\Serialization\SourceInfo.cs (1)
47this.ILG = ilg;
45 references to ILG
System.Private.Xml (45)
System\Xml\Serialization\SourceInfo.cs (32)
52return new SourceInfo($"(({td.CSharpName}){Source})", Arg, MemberInfo, td.Type!, ILG); 73object varA = ILG.GetVariable(match.Groups["a"].Value); 75object varIA = ILG.GetVariable(match.Groups["ia"].Value); 78ILG.Load(varA); 79ILG.Load(varIA); 83ILG.Ldelema(eType); 90ILG.Ldelema(eType); 93ILG.Ldobj(eType); 97ILG.Ldelem(eType); 99ILG.ConvertValue(eType, elementType); 104ILG.LoadAddress(varA); 105ILG.Load(varIA); 118ILG.Call(get_Item); 122LocalBuilder localTmp = ILG.GetTempLocal(eType); 123ILG.Stloc(localTmp); 124ILG.Ldloca(localTmp); 139ILG.Load(null); 147var = ILG.GetVariable(Arg.StartsWith("o.@", StringComparison.Ordinal) ? "o" : Arg); 150ILG.LoadAddress(var); 152ILG.Load(var); 156var = ILG.GetVariable(Arg); 162ILG.LoadAddress(var); 168ILG.LoadAddress(var); 170ILG.Load(var); 180ILG.LoadMemberAddress(MemberInfo); 185ILG.LoadMember(MemberInfo); 197ILG.ConvertAddress(varType, Type!); 199ILG.ConvertValue(varType, Type!); 212ILG.ConvertAddress(sourceType, targetType); 214ILG.ConvertValue(sourceType, targetType); 230ILG.Call(Nullable_get_Value); 233ILG.ConvertValue(Nullable_get_Value.ReturnType, targetType);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
2490LocalBuilder localA = initValue.ILG.DeclareOrGetLocal(localType, variableName); 2495initValue.ILG.Load(null); 2503initValue.ILG.LoadMember(initValue.ILG.GetLocal("o"), initValue.MemberInfo); 2512object fixup = initValue.ILG.GetVariable(vars[0]); 2514initValue.ILG.LoadMember(fixup, propInfo); 2515initValue.ILG.ConvertValue(propInfo.PropertyType, localA.LocalType); 2519object sVar = initValue.ILG.GetVariable(initValue.Arg); 2520initValue.ILG.Load(sVar); 2521initValue.ILG.ConvertValue(CodeGenerator.GetVariableType(sVar), localA.LocalType); 2524initValue.ILG.Stloc(localA); 2552LocalBuilder local = initValue.ILG.DeclareOrGetLocal(localType, variableName); 2554initValue.ILG.Stloc(local);