What does default(object); do in C#?

Posted by SLC on Stack Overflow See other posts from Stack Overflow or by SLC
Published on 2010-03-12T13:14:27Z Indexed on 2010/03/12 13:17 UTC
Read the original article Hit count: 108

Filed under:

Googling is only coming up with the keyword, but I stumbled across some code that says

MyVariable = default(MyObject);

and I am wondering what it means...

© Stack Overflow or respective owner

Related posts about c#