Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Converting string to Enum
Sahil Dev
Jun 2 2016 8:16 AM
336
Reply
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?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
send emails on button click
how can i export database table value in excel thorugh c#