23 instantiations of CodeGenerator
System.Private.Xml (23)
System\Xml\Serialization\XmlSerializationILGen.cs (10)
152ilg = new CodeGenerator(serializerContractTypeBuilder); 232ilg = new CodeGenerator(serializerContractTypeBuilder); 283ilg = new CodeGenerator(baseSerializerTypeBuilder); 325ilg = new CodeGenerator(typedSerializerTypeBuilder); 360ilg = new CodeGenerator(typedSerializerTypeBuilder); 384ilg = new CodeGenerator(typedSerializerTypeBuilder); 436ilg = new CodeGenerator(serializerContractTypeBuilder); 489ilg = new CodeGenerator(serializerContractTypeBuilder); 509ilg = new CodeGenerator(serializerContractTypeBuilder); 540ilg = new CodeGenerator(serializerContractTypeBuilder);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (8)
228ilg = new CodeGenerator(this.typeBuilder); 343ilg = new CodeGenerator(this.typeBuilder); 389ilg = new CodeGenerator(this.typeBuilder); 632ilg = new CodeGenerator(this.typeBuilder); 961ilg = new CodeGenerator(this.typeBuilder); 1033ilg = new CodeGenerator(this.typeBuilder); 1278ilg = new CodeGenerator(this.typeBuilder); 1329ilg = new CodeGenerator(this.typeBuilder);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
88ilg = new CodeGenerator(this.typeBuilder); 356ilg = new CodeGenerator(this.typeBuilder); 547ilg = new CodeGenerator(this.typeBuilder); 604ilg = new CodeGenerator(this.typeBuilder); 914ilg = new CodeGenerator(this.typeBuilder);
309 references to CodeGenerator
System.Private.Xml (309)
System\Xml\Serialization\CodeGenerator.cs (7)
299CodeGenerator.AssertHasInterface(varType, typeof(ICollection)); 303CodeGenerator.InstanceBindingFlags, 819CodeGenerator.InstanceBindingFlags, 832CodeGenerator.InstanceBindingFlags, 845CodeGenerator.InstanceBindingFlags, 857CodeGenerator.InstanceBindingFlags, 1363public WhileState(CodeGenerator ilg)
System\Xml\Serialization\Compilation.cs (2)
458AssemblyBuilder assemblyBuilder = CodeGenerator.CreateAssemblyBuilder(assemblyName); 481ModuleBuilder moduleBuilder = CodeGenerator.CreateModuleBuilder(assemblyBuilder, assemblyName);
System\Xml\Serialization\SourceInfo.cs (11)
39public readonly CodeGenerator ILG; 41public SourceInfo(string source, string? arg, MemberInfo? memberInfo, Type? type, CodeGenerator ilg) 74Type varType = CodeGenerator.GetVariableType(varA); 81if (CodeGenerator.IsNullableGenericType(eType)) 108CodeGenerator.InstanceBindingFlags, 120if (CodeGenerator.IsNullableGenericType(eType)) 148varType = CodeGenerator.GetVariableType(var); 157varType = CodeGenerator.GetVariableType(var); 159if (CodeGenerator.IsNullableGenericType(varType) && 178if (CodeGenerator.IsNullableGenericType(memberType)) 227CodeGenerator.InstanceBindingFlags,
System\Xml\Serialization\XmlSerializationILGen.cs (28)
37protected CodeGenerator ilg = null!; 165CodeGenerator.PublicOverrideMethodAttributes | MethodAttributes.SpecialName); 175CodeGenerator.InstanceBindingFlags, 238CodeGenerator.PublicOverrideMethodAttributes); 272TypeBuilder baseSerializerTypeBuilder = CodeGenerator.CreateTypeBuilder( 280CodeGenerator.InstanceBindingFlags, 288CodeGenerator.ProtectedOverrideMethodAttributes); 293CodeGenerator.InstanceBindingFlags, 300CodeGenerator.ProtectedOverrideMethodAttributes); 317TypeBuilder typedSerializerTypeBuilder = CodeGenerator.CreateTypeBuilder( 331CodeGenerator.PublicOverrideMethodAttributes 344CodeGenerator.InstanceBindingFlags, 366CodeGenerator.ProtectedOverrideMethodAttributes); 369CodeGenerator.InstanceBindingFlags, 390CodeGenerator.ProtectedOverrideMethodAttributes); 393CodeGenerator.InstanceBindingFlags, 401typedSerializerTypeBuilder.DefineDefaultConstructor(CodeGenerator.PublicMethodAttributes); 414CodeGenerator.InstanceBindingFlags, 421CodeGenerator.InstanceBindingFlags, 442CodeGenerator.PublicOverrideMethodAttributes); 461CodeGenerator.InstanceBindingFlags, 481TypeBuilder serializerContractTypeBuilder = CodeGenerator.CreateTypeBuilder( 500CodeGenerator.PublicOverrideMethodAttributes | MethodAttributes.SpecialName); 503CodeGenerator.InstanceBindingFlags, 520CodeGenerator.PublicOverrideMethodAttributes | MethodAttributes.SpecialName); 523CodeGenerator.InstanceBindingFlags, 537CodeGenerator.InstanceBindingFlags, 546CodeGenerator.PublicMethodAttributes | MethodAttributes.RTSpecialName | MethodAttributes.SpecialName
System\Xml\Serialization\XmlSerializationReaderILGen.cs (159)
187this.typeBuilder = CodeGenerator.CreateTypeBuilder( 230CodeGenerator.ProtectedOverrideMethodAttributes); 233CodeGenerator.InstanceBindingFlags, 238CodeGenerator.InstanceBindingFlags, 243CodeGenerator.InstanceBindingFlags, 260CodeGenerator.PublicMethodAttributes); 285CodeGenerator.InstanceBindingFlags, 290CodeGenerator.InstanceBindingFlags, 318ilg.ConvertValue(CodeGenerator.GetVariableType(pVar), typeof(object)); 331CodeGenerator.InstanceBindingFlags, 345CodeGenerator.ProtectedOverrideMethodAttributes); 395CodeGenerator.PublicMethodAttributes 401CodeGenerator.InstanceBindingFlags, 406CodeGenerator.InstanceBindingFlags, 503CodeGenerator.InstanceBindingFlags, 521CodeGenerator.InstanceBindingFlags, 536CodeGenerator.InstanceBindingFlags, 546CodeGenerator.InstanceBindingFlags, 561CodeGenerator.InstanceBindingFlags, 590CodeGenerator.InstanceBindingFlags, 638CodeGenerator.PublicMethodAttributes 650CodeGenerator.InstanceBindingFlags, 655CodeGenerator.InstanceBindingFlags, 690CodeGenerator.PrivateMethodAttributes, 699CodeGenerator.InstanceBindingFlags, 704CodeGenerator.InstanceBindingFlags, 715CodeGenerator.InstanceBindingFlags, 720CodeGenerator.InstanceBindingFlags, 749CodeGenerator.InstanceBindingFlags, 754CodeGenerator.InstanceBindingFlags, 765CodeGenerator.InstanceBindingFlags, 770CodeGenerator.InstanceBindingFlags, 802CodeGenerator.InstanceBindingFlags, 814CodeGenerator.InstanceBindingFlags, 819CodeGenerator.InstanceBindingFlags, 831CodeGenerator.InstanceBindingFlags, 845BindingFlags bindingFlags = CodeGenerator.StaticBindingFlags; 850bindingFlags = CodeGenerator.InstanceBindingFlags; 864CodeGenerator.StaticBindingFlags, 872CodeGenerator.InstanceBindingFlags, 877CodeGenerator.InstanceBindingFlags, 888CodeGenerator.InstanceBindingFlags, 893CodeGenerator.InstanceBindingFlags, 975CodeGenerator.InstanceBindingFlags, 985CodeGenerator.InstanceBindingFlags, 1039CodeGenerator.PrivateMethodAttributes); 1047CodeGenerator.StaticBindingFlags, 1090CodeGenerator.StaticBindingFlags, 1111CodeGenerator.InstanceBindingFlags, 1157CodeGenerator.PrivateMethodAttributes, 1183CodeGenerator.InstanceBindingFlags, 1188CodeGenerator.InstanceBindingFlags, 1202CodeGenerator.PrivateMethodAttributes, 1208CodeGenerator.InstanceBindingFlags, 1213CodeGenerator.InstanceBindingFlags, 1227CodeGenerator.InstanceBindingFlags, 1284CodeGenerator.PrivateMethodAttributes); 1292CodeGenerator.InstanceBindingFlags, 1344CodeGenerator.PrivateMethodAttributes); 1350CodeGenerator.InstanceBindingFlags, 1355CodeGenerator.InstanceBindingFlags, 1394CodeGenerator.InstanceBindingFlags, 1437CodeGenerator.InstanceBindingFlags, 1442CodeGenerator.InstanceBindingFlags, 1460CodeGenerator.InstanceBindingFlags, 1473CodeGenerator.InstanceBindingFlags, 1500CodeGenerator.InstanceBindingFlags, 1515CodeGenerator.InstanceBindingFlags, 1614CodeGenerator.InstanceBindingFlags, 1619CodeGenerator.InstanceBindingFlags, 1629CodeGenerator.InstanceBindingFlags, 1638CodeGenerator.InstanceBindingFlags, 1652CodeGenerator.InstanceBindingFlags, 1668CodeGenerator.InstanceBindingFlags, 1681CodeGenerator.InstanceBindingFlags, 1702CodeGenerator.InstanceBindingFlags, 1707CodeGenerator.InstanceBindingFlags, 1745CodeGenerator.InstanceBindingFlags, 1750CodeGenerator.InstanceBindingFlags, 1755CodeGenerator.InstanceBindingFlags, 1810CodeGenerator.InstanceBindingFlags, 1815CodeGenerator.InstanceBindingFlags, 1869CodeGenerator.InstanceBindingFlags, 1874CodeGenerator.InstanceBindingFlags, 1879CodeGenerator.InstanceBindingFlags, 1884CodeGenerator.InstanceBindingFlags, 1900CodeGenerator.InstanceBindingFlags, 1911CodeGenerator.InstanceBindingFlags, 1916CodeGenerator.InstanceBindingFlags, 1944CodeGenerator.InstanceBindingFlags, 1949CodeGenerator.InstanceBindingFlags, 1965CodeGenerator.InstanceBindingFlags, 1970CodeGenerator.InstanceBindingFlags, 1982CodeGenerator.InstanceBindingFlags, 2014CodeGenerator.InstanceBindingFlags, 2073CodeGenerator.InstanceBindingFlags, 2078CodeGenerator.InstanceBindingFlags, 2083CodeGenerator.InstanceBindingFlags, 2171CodeGenerator.InstanceBindingFlags, 2237CodeGenerator.InstanceBindingFlags, 2242CodeGenerator.InstanceBindingFlags, 2269CodeGenerator.InstanceBindingFlags, 2274CodeGenerator.InstanceBindingFlags, 2325CodeGenerator.InstanceBindingFlags, 2330CodeGenerator.InstanceBindingFlags, 2335CodeGenerator.InstanceBindingFlags, 2340CodeGenerator.InstanceBindingFlags, 2369CodeGenerator.InstanceBindingFlags, 2374CodeGenerator.InstanceBindingFlags, 2384CodeGenerator.InstanceBindingFlags, 2397CodeGenerator.InstanceBindingFlags, 2509CodeGenerator.InstanceBindingFlags, 2538CodeGenerator.InstanceBindingFlags, 2638CodeGenerator.InstanceBindingFlags, 2693Type varType = CodeGenerator.GetVariableType(variable); 2694if (CodeGenerator.IsNullableGenericType(varType)) 2720CodeGenerator.InstanceBindingFlags, 2738if (CodeGenerator.IsNullableGenericType(arrayElementType) || arrayElementType.IsValueType) 2757System.Diagnostics.Debug.Assert(CodeGenerator.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)).IsArray); 2774Type varType = CodeGenerator.GetVariableType(variable); 2775if (CodeGenerator.IsNullableGenericType(varType)) 2802Type arrayElementType = CodeGenerator.GetVariableType(oVar).GetElementType()!; 2804if (CodeGenerator.IsNullableGenericType(arrayElementType) || arrayElementType.IsValueType) 2822CodeGenerator.InstanceBindingFlags, 2837Type varType = CodeGenerator.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)); 2851CodeGenerator.InstanceBindingFlags, 2887CodeGenerator.InstanceBindingFlags, 2892CodeGenerator.InstanceBindingFlags, 2908CodeGenerator.InstanceBindingFlags, 2918CodeGenerator.InstanceBindingFlags, 2930CodeGenerator.InstanceBindingFlags, 2941CodeGenerator.InstanceBindingFlags, 2986CodeGenerator.PrivateMethodAttributes, 3001CodeGenerator.InstanceBindingFlags, 3024CodeGenerator.InstanceBindingFlags, 3029CodeGenerator.InstanceBindingFlags, 3038CodeGenerator.InstanceBindingFlags, 3055CodeGenerator.InstanceBindingFlags, 3060CodeGenerator.InstanceBindingFlags, 3070CodeGenerator.InstanceBindingFlags, 3094CodeGenerator.InstanceBindingFlags, 3135CodeGenerator.InstanceBindingFlags, 3140CodeGenerator.InstanceBindingFlags, 3163CodeGenerator.PrivateMethodAttributes, 3182CodeGenerator.InstanceBindingFlags, 3200CodeGenerator.InstanceBindingFlags, 3225CodeGenerator.InstanceBindingFlags, 3296CodeGenerator.InstanceBindingFlags, 3315CodeGenerator.InstanceBindingFlags, 3333CodeGenerator.InstanceBindingFlags, 3353CodeGenerator.InstanceBindingFlags, 3358CodeGenerator.InstanceBindingFlags, 3378CodeGenerator.InstanceBindingFlags, 3383CodeGenerator.InstanceBindingFlags, 3449CodeGenerator.InstanceBindingFlags, 3460CodeGenerator.InstanceBindingFlags, 3512CodeGenerator.InstanceBindingFlags, 3517CodeGenerator.InstanceBindingFlags, 3600CodeGenerator.InstanceBindingFlags,
System\Xml\Serialization\XmlSerializationWriterILGen.cs (102)
28this.typeBuilder = CodeGenerator.CreateTypeBuilder( 68CodeGenerator.PublicMethodAttributes); 90CodeGenerator.ProtectedOverrideMethodAttributes); 115CodeGenerator.InstanceBindingFlags, 134CodeGenerator.PrivateMethodAttributes, 163CodeGenerator.StaticBindingFlags, 173BindingFlags bindingFlags = CodeGenerator.StaticBindingFlags; 176bindingFlags = CodeGenerator.InstanceBindingFlags; 256CodeGenerator.InstanceBindingFlags, 266CodeGenerator.InstanceBindingFlags, 281CodeGenerator.InstanceBindingFlags, 294CodeGenerator.InstanceBindingFlags, 314CodeGenerator.InstanceBindingFlags, 324CodeGenerator.InstanceBindingFlags, 330ilg.ConvertValue(CodeGenerator.GetVariableType(oVar), typeof(object)); 362CodeGenerator.PublicMethodAttributes 367CodeGenerator.InstanceBindingFlags, 375CodeGenerator.InstanceBindingFlags, 553CodeGenerator.PublicMethodAttributes 558CodeGenerator.InstanceBindingFlags, 578CodeGenerator.InstanceBindingFlags, 610CodeGenerator.PrivateMethodAttributes); 682CodeGenerator.StaticBindingFlags, 702CodeGenerator.StaticBindingFlags, 707CodeGenerator.InstanceBindingFlags, 712CodeGenerator.InstanceBindingFlags, 758Type oType = CodeGenerator.GetVariableType(oVar); 771CodeGenerator.PrivateMethodAttributes, 803CodeGenerator.InstanceBindingFlags, 808CodeGenerator.InstanceBindingFlags, 818CodeGenerator.InstanceBindingFlags, 827CodeGenerator.PrivateMethodAttributes, 833CodeGenerator.InstanceBindingFlags, 841ilg.ConvertValue(CodeGenerator.GetVariableType(oVar), mapping.TypeDesc.Type!); 846CodeGenerator.InstanceBindingFlags, 869CodeGenerator.InstanceBindingFlags, 874CodeGenerator.InstanceBindingFlags, 884CodeGenerator.InstanceBindingFlags, 896CodeGenerator.InstanceBindingFlags, 934CodeGenerator.PrivateMethodAttributes); 943CodeGenerator.InstanceBindingFlags, 961CodeGenerator.InstanceBindingFlags, 980CodeGenerator.InstanceBindingFlags, 995CodeGenerator.InstanceBindingFlags, 1013CodeGenerator.InstanceBindingFlags, 1048CodeGenerator.InstanceBindingFlags, 1058CodeGenerator.InstanceBindingFlags, 1176CodeGenerator.InstanceBindingFlags, 1181CodeGenerator.InstanceBindingFlags, 1195CodeGenerator.InstanceBindingFlags, 1227CodeGenerator.InstanceBindingFlags, 1232CodeGenerator.InstanceBindingFlags, 1248CodeGenerator.InstanceBindingFlags, 1269CodeGenerator.InstanceBindingFlags, 1291CodeGenerator.InstanceBindingFlags, 1296CodeGenerator.InstanceBindingFlags, 1307CodeGenerator.InstanceBindingFlags, 1327CodeGenerator.InstanceBindingFlags, 1335CodeGenerator.InstanceBindingFlags, 1365CodeGenerator.InstanceBindingFlags, 1455CodeGenerator.InstanceBindingFlags, 1491CodeGenerator.InstanceBindingFlags, 1502CodeGenerator.InstanceBindingFlags, 1529CodeGenerator.InstanceBindingFlags, 1713CodeGenerator.InstanceBindingFlags, 1718CodeGenerator.InstanceBindingFlags, 1726CodeGenerator.StaticBindingFlags, 1749CodeGenerator.InstanceBindingFlags, 1776CodeGenerator.InstanceBindingFlags, 1783CodeGenerator.InstanceBindingFlags, 1788CodeGenerator.InstanceBindingFlags, 1834CodeGenerator.InstanceBindingFlags, 1865CodeGenerator.InstanceBindingFlags, 1877CodeGenerator.InstanceBindingFlags, 1882CodeGenerator.InstanceBindingFlags, 1906CodeGenerator.InstanceBindingFlags, 2013CodeGenerator.PrivateMethodAttributes, 2047CodeGenerator.InstanceBindingFlags, 2068CodeGenerator.InstanceBindingFlags, 2097CodeGenerator.InstanceBindingFlags, 2139CodeGenerator.StaticBindingFlags, 2169CodeGenerator.InstanceBindingFlags, 2196CodeGenerator.InstanceBindingFlags, 2316internal static void ILGenForEnumLongValue(CodeGenerator ilg, string variable) 2331internal static SourceInfo GetSourceForMember(string obj, MemberMapping member, CodeGenerator ilg) 2335internal static SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo? memberInfo, CodeGenerator ilg) 2340internal static void ILGenForEnumMember(CodeGenerator ilg, Type type, string memberName) 2354internal static void ILGenForCreateInstance(CodeGenerator ilg, Type type, bool ctorInaccessible, bool cast) 2359CodeGenerator.InstanceBindingFlags, 2378internal static void ILGenForCreateInstance(CodeGenerator ilg, Type type, Type? cast) 2383FieldInfo DBNull_Value = type.GetField("Value", CodeGenerator.StaticBindingFlags)!; 2397CodeGenerator.StaticBindingFlags, 2401CodeGenerator.InstanceBindingFlags, 2422CodeGenerator.StaticBindingFlags, 2467CodeGenerator.InstanceBindingFlags, 2476CodeGenerator.StaticBindingFlags, 2513PropertyInfo propInfo = CodeGenerator.GetVariableType(fixup).GetProperty(vars[1])!; 2521initValue.ILG.ConvertValue(CodeGenerator.GetVariableType(sVar), localA.LocalType); 2529internal static void WriteCreateInstance(string source, bool ctorInaccessible, Type type, CodeGenerator ilg) 2537internal static void WriteInstanceOf(SourceInfo source, Type type, CodeGenerator ilg) 2556internal static void WriteTypeCompare(string variable, Type type, CodeGenerator ilg) 2564internal static void WriteArrayTypeCompare(string variable, Type arrayType, CodeGenerator ilg)