BooleanSwitch question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john

    BooleanSwitch question

    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
  • Miha Markic

    #2
    Re: BooleanSwitch question


    "john" <anonymous@disc ussions.microso ft.com> wrote in message
    news:033701c3c0 e5$06ebdb30$a10 1280a@phx.gbl.. .[color=blue]
    > The MSDN documentation says that if you dont compile with
    > DEBUG or TRACE flags then you cant use the BooleanSwitch
    > object. is this true?[/color]

    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.
    [color=blue]
    > 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?[/color]

    Yes.

    or[color=blue]
    > only if i build with the TRACE compiler switch?[/color]

    No. It is independent.

    --
    Miha Markic - RightHand .NET consulting & development
    miha at rthand com


    Comment

    • john

      #3
      Re: BooleanSwitch question

      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?
      [color=blue]
      >-----Original Message-----
      >
      >"john" <anonymous@disc ussions.microso ft.com> wrote in[/color]
      message[color=blue]
      >news:033701c3c 0e5$06ebdb30$a1 01280a@phx.gbl. ..[color=green]
      >> The MSDN documentation says that if you dont compile[/color][/color]
      with[color=blue][color=green]
      >> DEBUG or TRACE flags then you cant use the[/color][/color]
      BooleanSwitch[color=blue][color=green]
      >> object. is this true?[/color]
      >
      >Paritally. Only if you use the switch with Trace or[/color]
      Debug methods. Actually[color=blue]
      >the TRACE and DEBUG affects only those two methods and[/color]
      not the switch[color=blue]
      >itself.
      >[color=green]
      >> 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?[/color]
      >
      >Yes.
      >
      >or[color=green]
      >> only if i build with the TRACE compiler switch?[/color]
      >
      >No. It is independent.
      >
      >--
      >Miha Markic - RightHand .NET consulting & development
      >miha at rthand com
      >
      >
      >.
      >[/color]

      Comment

      • Miha Markic

        #4
        Re: BooleanSwitch question

        Da :)

        --
        Miha Markic - RightHand .NET consulting & development
        miha at rthand com

        "john" <anonymous@disc ussions.microso ft.com> wrote in message
        news:032901c3c0 f8$969fbfe0$a30 1280a@phx.gbl.. .[color=blue]
        > 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?[/color]


        Comment

        Working...