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