Tuesday, January 6, 2009

Hidden Features in C#

1) Using @ for variable that are keyword.

var @object = new object();
var @string = "";
var @if = IpsoFacto();

2) Aliased Generics.

using ASimpleName = Dictionary>>;

Allows you to ASimpleName,instead of


Use it when you would use the same generic big long complex thing in a lot of places.

Read MOre..

No comments: