[Mono-aspnet-list] Using C# 3.0? Error due to 2.0

william leader william.leader at gmail.com
Fri Aug 6 02:22:52 EDT 2010

To the best of my knowledge there are three options here:

1) Change your code to contain full property implementations. Its not
that much work. This was my choice.

2) Add support for auto-implemented properties to Mono and submit a
patch. Good luck.

3) Wait for someone else to add support for it to Mono. Good Luck.

Actually there is a fourth possibility: 4) Check to see if this is in
the trunk and build your own mono. I don't think this is the case
since a search (
http://www.google.co.uk/search?q=Mono+"Auto-Implemented+Properties" )
didn't turn up any obvious hits.

On Thu, Aug 5, 2010 at 11:35 PM, Dizzy <hohenberger.jakob at gmail.com> wrote:
> Hey,
> I'm used to implement properties automatically. public Foo {get;set;}.
> Can I fix this error
> -- Code ---
> error CS1644: Feature `automatically implemented properties' cannot be used
> because it is not part of the C# 2.0 language specification
> --- Code End ---
> without rewriting?
> Thanks
> Jakob
> Edit: I'm using the latest mono version for Debian Lenny.
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Using-C-3-0-Error-due-to-2-0-tp2315695p2315695.html
> Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

More information about the Mono-aspnet-list mailing list