Please tell me what is use of "Default" keyword in c#.net

Posted by Rajesh Rolen- DotNet Developer on Stack Overflow See other posts from Stack Overflow or by Rajesh Rolen- DotNet Developer
Published on 2010-05-25T11:24:28Z Indexed on 2010/05/25 11:41 UTC
Read the original article Hit count: 269

Filed under:
|

i have got following code:

i have a enum:

public enum HardwareInterfaceType
{

    Gpib = 1,

    Vxi = 2,

    GpibVxi = 3,

}

and using this enum like this :

 HardwareInterfaceType type = default(HardwareInterfaceType);

please tell me what is keyword "Default" is doing here? what is use of it?

© Stack Overflow or respective owner

Related posts about c#

Related posts about default