Did you know in .net #3 (Variable names that are keywords in language)
With help of @ you can name your variables with names that are keywords in C#.
var @params = "1,2,3,4,5,6"; var @string = ""; var @object = new object(); var @if = IfSomeMethod();
Did you know in .net #2 (Limit the scope of variables)
Limit the life and the scope of variables by using { } brackets.
string str1 = “1”;
{string str2 = “3”; Console.Write(str2);}
Console.Write(str2);
str2 only lives within … more
Did you know in .net #1 (default keyword in generic)
T t = default(T);
Default vary by type of T where results in a 'null' if T is a reference type, false if it is a Boolean, 0 if is int and so on. more