BooleanSwitch question

  • Thread starter Thread starter john
  • Start date Start date
J

john

The MSDN documentation says that if you dont compile with
DEBUG or TRACE flags then you cant use the BooleanSwitch
object. is this true?

If i have a BooleanSwitch wrapping a conditional
statement and build for RELEASE, and then turn my
BooleanSwitch on to true, will the condition execute? or
only if i build with the TRACE compiler switch?

thanks,
John
 
john said:
The MSDN documentation says that if you dont compile with
DEBUG or TRACE flags then you cant use the BooleanSwitch
object. is this true?

Paritally. Only if you use the switch with Trace or Debug methods. Actually
the TRACE and DEBUG affects only those two methods and not the switch
itself.
If i have a BooleanSwitch wrapping a conditional
statement and build for RELEASE, and then turn my
BooleanSwitch on to true, will the condition execute?
Yes.

or
only if i build with the TRACE compiler switch?

No. It is independent.
 
ok, so if i'm just using the BooleanSwitch to control
logic from the web.config page, then it doesnt matter
what compile flags i use, correct?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top