Visual Studio 2005 is using .NET 2.0/C# 2, only with some extending can you use some .NET 3/C# 3 features (WCF is the best known).<br><br>It seems that Visual Studio 2008 is doing some tricks for you when you have a .NET 2.0 project, but use .NET 3/3.5 syntax. Like this:<br>
<br>public string Test { get; set; }<br><br>Just works in a .NET 2.0 project, same with lambda, while it is .NET 3/ C# 3 specs<br><br>Ruud<br><br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 3:57 PM, Teravus Ovares <span dir="ltr"><<a href="mailto:teravus@gmail.com">teravus@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The problem with Lamda Expressions isn't compiling to IL 2.0..   it's<br>
compiling in Visual Studio 2005.  Visual Studio 2005 will not compile<br>
Lamda Expressions at all.<br>
<br>
Regards<br>
<br>
Teravus<br>
<div><div></div><div class="h5"><br>
On 3/25/09, Sean Dague <<a href="mailto:sdague@gmail.com">sdague@gmail.com</a>> wrote:<br>
> Stefan Andersson wrote:<br>
> > Yo.<br>
> >=20<br>
> > =20<br>
> >=20<br>
> > Feeling a bit stupid here, but just realized that many C# 3.0 features =<br>
> (lambda expressions and inferred types, for example) compiles just fine t=<br>
> o the .Net 2 IL, so in practise, it can be used if the installed csc supp=<br>
> orts it.<br>
> >=20<br>
> > =20<br>
> >=20<br>
> > What I'm saying is that we can probably start using some C# 3.0 feature=<br>
> s already even on mono (I guess) without moving from .Net 2.0. Question i=<br>
> s, what features?<br>
> >=20<br>
> >=20<br>
> > Could any mono person have a look at what C# 3.0 constructs are actuall=<br>
> y backwards compatible with .Net 2.0 on mono?<br>
><br>
> One approach would be to make a new unit test that used some of those<br>
> features, then it would be easy for people to test with their<br>
> environment.  I suspect mono 1.9.1 is still going to have issues, and we<br>
> haven't committed to dumping it yet (as that's what is shipping in the<br>
> latest stable release of Ubuntu, which a lot of people are using).<br>
><br>
> The new Ubuntu release comes out in April with Mono 2.0.2, so we can<br>
> leave 1.9.1 behind in the near future.<br>
><br>
>        -Sean<br>
><br>
> --=20<br>
> Sean Dague / Neas Bade<br>
> <a href="mailto:sdague@gmail.com">sdague@gmail.com</a><br>
> <a href="http://dague.net" target="_blank">http://dague.net</a><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Opensim-dev mailing list<br>
> <a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
> <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
><br>
><br>
><br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</blockquote></div><br>