Using Boolean Switch : BooleanSwitch : Development C# Examples


C# Examples » Development » BooleanSwitch »

 

Using Boolean Switch









    
using  System;
using  System.IO;
using  System.Diagnostics;

class  MainClass
{
    static  BooleanSwitch  MySwitch  =  new  BooleanSwitch("MyData",  "MyModule");
    [STAThread]
    static  void  Main(string[]  args)
    {
        MySwitch.Enabled  =  true;
        if  (MySwitch.Enabled)
            Console.WriteLine("Error  happened!");
    }
}
    
   
  
   



Output

Error happened!


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» BooleanSwitch