Banane9•

So essentially what the new null coalescing operators ?. will allow you to do?

2
AbstractLogic•

When is that available anyhow? I've been waiting for nearly 8 months!

3
AngularBeginner•

It has been added yesterday to the Roslyn repository:

http://roslyn.codeplex.com/SourceControl/changeset/6f2e0b6dc68b0a957dadfa07588532d1cdcd4d76

So it will most likely be part of C#6 which will probably come out end of the year / early 2015.

3
Banane9•

I know, right?

1
mrowa•

You mean the new null coalescing operator in the newest .net version some lucky people will use in production? ;)

After a quick glance I can't find supported .net versions for this library, but if it'd work with .net 2.0... well, still not as nice or as clean as good ol' ifs, but may be nice for a bit complicated situations (I'm thinking ADO.net / EF).

1
AngularBeginner•

This operator will not be part of .NET, as the framework has nothing to do with it. It is simply syntactic sugar and will be part of C#6.

3
mrowa•

My bad.

1
Banane9•

Well, they use lambdas, so it requires at least .Net 3.5 for that.

1
Kralizek82•

Although, i remember that you can use lambdas in 2.0 with with some trickery. Never tried tho, and i have no idea if the trick is safe for production envs

2
Banane9•

Huh, how would You do That? O.o

1