By Serhat Ozgel


2008-08-12 16:32:24 8 Comments

This came to my mind after I learned the following from this question:

where T : struct

We, C# developers, all know the basics of C#. I mean declarations, conditionals, loops, operators, etc.

Some of us even mastered the stuff like Generics, anonymous types, lambdas, LINQ, ...

But what are the most hidden features or tricks of C# that even C# fans, addicts, experts barely know?

Here are the revealed features so far:


Keywords

Attributes

Syntax

Language Features

Visual Studio Features

Framework

Methods and Properties

Tips & Tricks

  • Nice method for event handlers by Andreas H.R. Nilsson
  • Uppercase comparisons by John
  • Access anonymous types without reflection by dp
  • A quick way to lazily instantiate collection properties by Will
  • JavaScript-like anonymous inline-functions by roosteronacid

Other

Related Questions

Sponsored Content

61 Answered Questions

[SOLVED] How do I calculate someone's age in C#?

  • 2008-07-31 23:40:59
  • Jeff Atwood
  • 585225 View
  • 1793 Score
  • 61 Answer
  • Tags:   c# .net datetime

27 Answered Questions

[SOLVED] Get int value from enum in C#

  • 2009-06-03 06:46:39
  • jim
  • 1448211 View
  • 1737 Score
  • 27 Answer
  • Tags:   c# enums casting int

66 Answered Questions

[SOLVED] What is the difference between String and string in C#?

10 Answered Questions

[SOLVED] What are the correct version numbers for C#?

10 Answered Questions

[SOLVED] Calling the base constructor in C#

22 Answered Questions

[SOLVED] What is the best way to give a C# auto-property an initial value?

39 Answered Questions

37 Answered Questions

[SOLVED] Calculate relative time in C#

Sponsored Content