web 2.0

Hidden Features of C#

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)

kick it on DotNetKicks.com

Share/Save/Bookmark Subscribe

Currently rated 3.7 by 3 people

  • Currently 3.666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

C#

Comments

Add comment


 

biuquote
Loading



Technorati Profile