[CLOSED] Anonymous type for ParameterCollection worked in beta but not in release

  1. #1

    [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> '


    @{
        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.
  2. #2
    Hello!

    Can you try Ext.NET Mobile off github sources? This has already been fixed in the latest snapshot.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    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!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. 2.x Beta Release 2
    By GKG4 in forum 2.x Help
    Replies: 4
    Last Post: May 11, 2012, 11:47 AM
  2. [CLOSED] Ext.net 2v Beta Release: Calendar
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 28, 2012, 11:13 AM
  3. Replies: 2
    Last Post: Mar 26, 2012, 8:51 PM
  4. [CLOSED] Ext.net v2 Beta release: Checkbox BoxLabel property is
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 19, 2012, 1:01 PM
  5. [CLOSED] v2.0 Store with linq anonymous type
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Mar 12, 2012, 5:12 PM

Posting Permissions