L
Lucky
Hi guys,
i was working with Enum and one Question strike, i thought it would be
good idea to ask more experience guys around.
the scenerio is like this :
[System.ComponentModel.DefaultValue(check.None)]
public enum check
{
No,
None,
yes,
why
}
check ch;
all i want to know is, is it possible to assign default value
(like .net value type has NULL as default value) this way?
and if not this way and u know another way of doing it plz let me
know.
by another way i dont mean like this
check ch=check.None;
i mean it should be like the way i declared on the top.
i would appriciate all your opinon on this.
thanks,
Lucky
i was working with Enum and one Question strike, i thought it would be
good idea to ask more experience guys around.
the scenerio is like this :
[System.ComponentModel.DefaultValue(check.None)]
public enum check
{
No,
None,
yes,
why
}
check ch;
all i want to know is, is it possible to assign default value
(like .net value type has NULL as default value) this way?
and if not this way and u know another way of doing it plz let me
know.
by another way i dont mean like this
check ch=check.None;
i mean it should be like the way i declared on the top.
i would appriciate all your opinon on this.
thanks,
Lucky