Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

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?
0
mmingfeilam
Asked:
mmingfeilam
1 Solution
 
BuggyCoderCommented:
string isolationConfig=ConfigurationManager.AppSettings["IsolationLevel"];
IsolationLevel level = Enum.Parse(typeof(IsolationLevel),isolationConfig);

Open in new window

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now