Default keyword in c#

added by jalpesh
2/13/2013 1:11:49 PM


n this post, I am going to explain about default keyword in c#. Introduction: As per MSDN default keyword in C# it used to assign the default value of the type. In some situation its comes very handy where we don’t want to create object and directly assign the default value of it. The basic syntax of default is default(T) where t is any reference type of value type and If T is a value type, whether it will be a numeric value or struct.