Sep 27, 2016, 11:32 AM
[CLOSED] Anonymous type for ParameterCollection worked in beta but not in release
Hi, the following code worked in Ext.Mobile BETA, but not in RELEASE. I get this error when passing an anonymous object to the Defaults()-method:
Compiler Error Message: CS1503: Argument 1: cannot convert from '<anonymous type: string styleSpec>' to 'System.Action<Ext.Net.Mobile.ParameterCollection> '
Compiler Error Message: CS1503: Argument 1: cannot convert from '<anonymous type: string styleSpec>' to 'System.Action<Ext.Net.Mobile.ParameterCollection> '
@{
var x = Html.X();
}
@(
x.Panel()
.Title("Defaults test")
.Defaults(new { styleSpec="background-color:green;" }) // <-- ERROR
.Items(
x.Button().Text("Button")
)
)
Last edited by fabricio.murta; Dec 02, 2016 at 1:59 PM.