What is the use of `default` keyword in C#?

Viewed 41399
  1. What is the use of default keyword in C#?
  2. Is it introduced in C# 3.0 ?
6 Answers

Echoing and emphasizing it's use in generics and little else other than code-generation.

If you have to initialize to default (already suspiciously smelly in my book) be clear. Just do it.

Related