Friday 17 April 2015

assign null value to enum in c#

You can use the "?" operator for a enum nullable type.

Ex:
public enumname? objenum = null;

or else u can create one more enum as none then use it.

No comments:

Post a Comment