[Opensim-dev] C# 3.0 vs .Net 2

Ruud Lathrop ruud.lathrop at gmail.com
Wed Mar 25 18:34:25 UTC 2009


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).

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:

public string Test { get; set; }

Just works in a .NET 2.0 project, same with lambda, while it is .NET 3/ C# 3
specs

Ruud


On Wed, Mar 25, 2009 at 3:57 PM, Teravus Ovares <teravus at gmail.com> wrote:

> The problem with Lamda Expressions isn't compiling to IL 2.0..   it's
> compiling in Visual Studio 2005.  Visual Studio 2005 will not compile
> Lamda Expressions at all.
>
> Regards
>
> Teravus
>
> On 3/25/09, Sean Dague <sdague at gmail.com> wrote:
> > Stefan Andersson wrote:
> > > Yo.
> > >=20
> > > =20
> > >=20
> > > Feeling a bit stupid here, but just realized that many C# 3.0 features
> =
> > (lambda expressions and inferred types, for example) compiles just fine
> t=
> > o the .Net 2 IL, so in practise, it can be used if the installed csc
> supp=
> > orts it.
> > >=20
> > > =20
> > >=20
> > > What I'm saying is that we can probably start using some C# 3.0
> feature=
> > s already even on mono (I guess) without moving from .Net 2.0. Question
> i=
> > s, what features?
> > >=20
> > >=20
> > > Could any mono person have a look at what C# 3.0 constructs are
> actuall=
> > y backwards compatible with .Net 2.0 on mono?
> >
> > One approach would be to make a new unit test that used some of those
> > features, then it would be easy for people to test with their
> > environment.  I suspect mono 1.9.1 is still going to have issues, and we
> > haven't committed to dumping it yet (as that's what is shipping in the
> > latest stable release of Ubuntu, which a lot of people are using).
> >
> > The new Ubuntu release comes out in April with Mono 2.0.2, so we can
> > leave 1.9.1 behind in the near future.
> >
> >        -Sean
> >
> > --=20
> > Sean Dague / Neas Bade
> > sdague at gmail.com
> > http://dague.net
> >
> >
> >
> > _______________________________________________
> > Opensim-dev mailing list
> > Opensim-dev at lists.berlios.de
> > https://lists.berlios.de/mailman/listinfo/opensim-dev
> >
> >
> >
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20090325/53ce36c2/attachment-0001.html>


More information about the Opensim-dev mailing list