PDA

View Full Version : [CLOSED] Anonymous type for ParameterCollection worked in beta but not in release



sveins12
Sep 27, 2016, 12:32 PM
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>'




@{
var x = Html.X();
}
@(
x.Panel()
.Title("Defaults test")
.Defaults(new { styleSpec="background-color:green;" }) // <-- ERROR
.Items(
x.Button().Text("Button")
)
)

fabricio.murta
Sep 28, 2016, 1:32 AM
Hello!

Can you try Ext.NET Mobile off github sources? This has already been fixed in the latest snapshot.

fabricio.murta
Nov 16, 2016, 4:15 PM
Hello @sveins12!

It's been some days already and we didn't hear back from you regarding this issue. While we are confident we have fixed this already, maybe in your use case scenario something is still not right and knowing it will help us improve Ext.NET Mobile accordingly!

Hope to hear your feedback soon!