bitwise combination

Heike

Well-known member
Joined
Jun 5, 2002
Messages
56
I just read the help for the IsolationLevel . It is said that this enumeration has a FlagsAttribute that allows a bitwise combination of its member values.

My question now is simple: how must I do that bitwise combination?
 
You combine values using the Or operator:

Code:
myClass.IsolationLevel = IsolationLevel.Chaos Or IsolationLevel.ReadCommitted
 
Back
Top