Showing posts with label .NET. Show all posts
Showing posts with label .NET. Show all posts

Wednesday, June 27, 2012

New Features Of .NET 4.0

Introduction


This article contains some of the new features of ASP.NET 4.0 and Visual Studio 2010 IDE.

Improvements in C# 4.0


C# in .NET Framework 4.0 has some more things to offer. These are:

  • Dynamic lookup

  • Named

  • Optional parameters


Dynamic Lookup


There is a new static type named dynamic. We can use it as object of any type. If there is any error on its usage, we would get it on runtime only. For example:
dynamic integerValue = 1;
dynamic stringValue = " a string";
dynamic Result = integerValue + stringValue;