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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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.

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