Author: zoltan
Date: 2006-07-14 12:11:27 -0400 (Fri, 14 Jul 2006)
New Revision: 62607
Modified:
Log:
2006-07-14 Zoltan Varga <vargaz (AT) gmail (DOT) com>
* ConstructorBuilder.cs (GetILGenerator): Avoid creating a new ILGenerator each time
this is called. Fixes #78859.
Modified:
2006-07-14 16:09:23 UTC (rev 62606)
2006-07-14 16:11:27 UTC (rev 62607)
@@ -1,3 +1,8 @@
+2006-07-14 Zoltan Varga <vargaz (AT) gmail (DOT) com>
+
+* ConstructorBuilder.cs (GetILGenerator): Avoid creating a new ILGenerator each time
+this is called. Fixes #78859.
+
2006-07-11 Zoltan Varga <vargaz (AT) gmail (DOT) com>
* MethodBuilder.cs (SetCustomAttribute): Fix handling of SpecialNameAttribute.
Modified:
2006-07-14 16:09:23 UTC (rev 62606)
2006-07-14 16:11:27 UTC (rev 62607)
@@ -211,6 +211,8 @@
internal
#endif
ILGenerator GetILGenerator (int size) {
+if (ilgen != null)
+return ilgen;
ilgen = new ILGenerator (type.Module, ((ModuleBuilder)type.Module).GetTokenGenerator (), size);
return ilgen;
}
Mono-patches maillist - Mono-patches (AT) lists (DOT) ximian.com