I
Ibrahim.
Hello,
I have a enum structure like this ;
[Flags]
public enum days
{
Sun=1,
Mon=2,
Tue=4,
Wed=8,
Thur=16,
Fri=32,
Sat=64
}
now i sum only sun & fri & save to database table field
int daysSelected = (int) days.sun | days.fri
now i want to get the enum values from daysSelected again ?
thanks.
I have a enum structure like this ;
[Flags]
public enum days
{
Sun=1,
Mon=2,
Tue=4,
Wed=8,
Thur=16,
Fri=32,
Sat=64
}
now i sum only sun & fri & save to database table field
int daysSelected = (int) days.sun | days.fri
now i want to get the enum values from daysSelected again ?
thanks.