Csharp/CSharp Tutorial/Development/BooleanSwitch
Версия от 15:31, 26 мая 2010; (обсуждение)
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!");
}
}
Error happened!