Suresh Sundar
Success is journey, not a destination, always.
Showing posts with label
how to assign null value to enum in c#
.
Show all posts
Showing posts with label
how to assign null value to enum in c#
.
Show all posts
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.
Older Posts
Home
Subscribe to:
Posts (Atom)