What new features in C # / VB require .net Framework 4?

I remember commenting along the way that some of the new language features in C # and VB that are available in VS2010 are backward compatible with earlier versions of the framework, but others are not. I am sure that this was due to the new property syntax in VB.

Which new features are language features, and which ones are platform specific?

+7
c # visual-studio-2010
source share
3 answers

I would suggest reading What's New in .NET 4.0 for an exhaustive answer, and not for bits and beans that people can remember and pick up here.

There is a final list on this page.

+10
source share

Co- and contra-varance do not require the .NET framework 4, but the corresponding interfaces and delegate types have been updated to support dispersion. For example. IEnumerable<T> now IEnumerable<out T> .

The new dynamic keyword is bound to the IDynamicMetaObjectProvider interface, which is used to implement dynamic binding. It can be said that dynamic binding requires DLR, which is part of the new runtime and structure.

+2
source share

The dynamic type is new to C # 4, it works with the new Dynamic Language Extension in the CLR.

+1
source share

All Articles