[Mono-devel-list] NonSerialized attribute and events

Marek Safar marek.safar at seznam.cz
Mon Jan 24 03:25:13 EST 2005


>
>
>Hello Mads,
>
>I am trying to use the NonSerialized attrbute for an event, but I get:
>
>  
>
>>Attribute 'NonSerialized' is not valid on this declaration type. It is
>>    
>>
>valid on 'field' 'property'  declarations only.
>
>I have been investigating the problem a little bit and found on this
>homepage:
>http://weblogs.asp.net/rosherove/archive/2004/12/29/343659.aspx
>that I should try [field:NonSerialized]. But I get the same results as
>above.
>
>Anybody, have a solution? workaround? Is it an error in Mono?
>  
>

Please update to mono 1.1.3 version (it contains fix for your problem).

Regards,
Marek Safar




More information about the Mono-devel-list mailing list