Author: rolf
Date: 2007-05-25 12:32:58 -0400 (Fri, 25 May 2007)
New Revision: 77950
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
Log:
2007-05-25 Marek Habersack <[EMAIL PROTECTED]>
* TemplateControlCompiler.cs: Changed a few incorrect
ObjectCreationExpression to the correct DelegateCreationExpression.
Fixes #81706.
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-05-25
15:57:25 UTC (rev 77949)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2007-05-25
16:32:58 UTC (rev 77950)
@@ -1,3 +1,9 @@
+2007-05-25 Marek Habersack <[EMAIL PROTECTED]>
+
+ * TemplateControlCompiler.cs: Changed a few incorrect
+ ObjectCreationExpression to the correct DelegateCreationExpression.
+ Fixes #81706.
+
2007-05-24 Marek Habersack <[EMAIL PROTECTED]>
* PageCompiler.cs: added support for the PreviousPageType directive.
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
2007-05-25 15:57:25 UTC (rev 77949)
+++
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
2007-05-25 16:32:58 UTC (rev 77950)
@@ -1019,11 +1019,11 @@
{
CodePropertyReferenceExpression prop = new
CodePropertyReferenceExpression (ctrlVar, name);
- CodeObjectCreateExpression newBuild = new
CodeObjectCreateExpression (typeof (BuildTemplateMethod));
- newBuild.Parameters.Add (new
CodeMethodReferenceExpression (thisRef, methodName));
+ CodeDelegateCreateExpression newBuild = new
CodeDelegateCreateExpression (
+ new CodeTypeReference (typeof
(BuildTemplateMethod)), thisRef, methodName);
- CodeObjectCreateExpression newExtract = new
CodeObjectCreateExpression (typeof (ExtractTemplateValuesMethod));
- newExtract.Parameters.Add (new
CodeMethodReferenceExpression (thisRef, extractMethodName));
+ CodeDelegateCreateExpression newExtract = new
CodeDelegateCreateExpression (
+ new CodeTypeReference (typeof
(ExtractTemplateValuesMethod)), thisRef, extractMethodName);
CodeObjectCreateExpression newCompiled = new
CodeObjectCreateExpression (typeof (CompiledBindableTemplateBuilder));
newCompiled.Parameters.Add (newBuild);
@@ -1095,8 +1095,8 @@
void AddContentTemplateInvocation (ContentBuilderInternal
cbuilder, CodeMemberMethod method, string methodName)
{
- CodeObjectCreateExpression newBuild = new
CodeObjectCreateExpression (typeof (BuildTemplateMethod));
- newBuild.Parameters.Add (new
CodeMethodReferenceExpression (thisRef, methodName));
+ CodeDelegateCreateExpression newBuild = new
CodeDelegateCreateExpression (
+ new CodeTypeReference (typeof
(BuildTemplateMethod)), thisRef, methodName);
CodeObjectCreateExpression newCompiled = new
CodeObjectCreateExpression (typeof (CompiledTemplateBuilder));
newCompiled.Parameters.Add (newBuild);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches