* PageCompiler.cs: if generating code to assign output cache
parameters, use special case for generating OutputCacheLocation
enum reference. Fixes bug #512037
svn path=/trunk/mcs/; revision=135918
+2009-06-11 Marek Habersack <mhabersack@novell.com>
+
+ * PageCompiler.cs: if generating code to assign output cache
+ parameters, use special case for generating OutputCacheLocation
+ enum reference. Fixes bug #512037
+
2009-06-04 Marek Habersack <mhabersack@novell.com>
* AspGenerator.cs: if plain text is parsed and it contains
var ret = new CodeAssignStatement ();
ret.Left = new CodeFieldReferenceExpression (variable, propName);
- ret.Right = new CodePrimitiveExpression (value);
+
+ if (value is OutputCacheLocation)
+ ret.Right = new CodeFieldReferenceExpression (
+ new CodeTypeReferenceExpression (new CodeTypeReference (typeof (OutputCacheLocation), CodeTypeReferenceOptions.GlobalReference)),
+ value.ToString ()
+ );
+ else
+ ret.Right = new CodePrimitiveExpression (value);
return ret;
}