Hi,
In this article, I’ll just link to a pretty great StackOverFlow Question about Hidden Features of C#.
Most of C# Features are obscure for us and need some explanations, the following list and explain how to use it.
For Example, Using the @ for variable names that are keywords
Using @ for variable names that are keywords.
var @object = new object();
var @string = "";
var @if = IpsoFacto();
Or even Aliased Generics
aliased generics:
using ASimpleName = Dictionary<string, Dictionary<string, List<string>>>;
allows you to use ASimpleName, instead of Dictionary<string, Dictionary<string, List<string>>>
use it when you would use the same generic big long complex thing in a lot of places
Check this out here : http://stackoverflow.com/questions/9033
Hope this Help’s.
Views(5514)

