- public enum XX
-
- {
-
- Yes= 0;
-
- No=1;
-
-
-
- }
I have an Enum defined as above.
I have a string defined as;
string abc;
'abc' has a value of Fixed or Free.
If abc is 'Fixed' I would likes to convert to XX.Yes
If abc is 'Free' I would like to convert to XX.No
What is the best way to go about?
Please can anyone help urgently?