how to convert a string to System.Transactions.IsolationLevel

is it possible to have IsolationLevel in ConfigurationManager.AppSettings as a string and then convert it back to System.Transactions.IsolationLevel in .NET 3.5?
mmingfeilamAsked:
Who is Participating?
 
BuggyCoderConnect With a Mentor Commented:
string isolationConfig=ConfigurationManager.AppSettings["IsolationLevel"];
IsolationLevel level = Enum.Parse(typeof(IsolationLevel),isolationConfig);

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.