-1

Can you give me the features added in .net 4.0 version and how does it differentiate with .net 3.5 version? Describe?

Alastair Pitts
  • 19,423
  • 9
  • 68
  • 97
Srinath
  • 7
  • 2
  • 1
    See [Basic difference between .net 3.5 and 4.0](http://stackoverflow.com/questions/1000101/basic-difference-between-net-3-5-and-4-0) – Matthew Flaschen May 21 '10 at 04:38

2 Answers2

6

What's New in the .NET Framework 4
http://msdn.microsoft.com/en-us/library/ms171868.aspx

27 New Features of .NET Framework 4.0
http://msdotnetsupport.blogspot.com/2009/06/27-new-features-of-net-framework-40.html

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1

As your question is tagged C# I assume you just want to know those features added to the language:

Dynamic lookup

Dynamic lookup allows you to write method, operator and indexer calls, property and field accesses, and even object invocations which bypass the C# static type checking and instead gets resolved at runtime.

Named and optional parameters

Parameters in C# can now be specified as optional by providing a default value for them in a member declaration. When the member is invoked, optional arguments can be omitted. Furthermore, any argument can be passed by parameter name instead of position.

COM specific interop features

Dynamic lookup as well as named and optional parameters both help making programming against COM less painful than today. On top of that, however, we are adding a number of other small features that further improve the interop experience.

Variance

It used to be that an IEnumerable wasn’t an IEnumerable. Now it is – C# embraces type safe “co-and contravariance” and common BCL types are updated to take advantage of that.

From http://blogs.lessthandot.com/index.php/DesktopDev/MSTech/the-new-features-in-c-4

The source document is here: New features in C# 4.0

David Neale
  • 16,498
  • 6
  • 59
  • 85