What’s new in C# 3.0

What’s new in C# 3.0

1)Implicit typed local variables

Local variables can be declared as type var, whose actual type of the variable is determined by the compiler based on the data schema.It’s mainly used to store anonymous types in LINQ.

// This is an integer
var nId = 1234567;
//This is a string
var strFullname = “Chrisranjana Developers”;

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.