The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Using the default keyword in C#
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Garen YöndemPosted Mar 16, 2016, 6:41 PM
Didn't think of the third case before. Thanks.
Rajneesh RaiPosted Apr 14, 2014, 5:15 AM
Nice Explanation !! In my opinion there are only two uses of default, in switch case statements and getting default value of a Type.
TarikPosted Jan 5, 2010, 9:51 PM
I was wondering how default keyword works in different context and this article shows that clearly. Some times MSDN really bothers me with its insufficient description of code.
Umut bayrakPosted Oct 21, 2008, 2:56 AM
Thanks i never thought default keyword work like this, this topic really helpful