BoolTest
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BoolTest
{
class Program
{
static void Main(string[] args)
{
bool flagT, flagF;
flagT = true;
flagF = false;
Console.WriteLine("The value of flagT is {0}", flagT);
Console.WriteLine("The value of flagF is {0}", flagF);
Console.ReadKey();
}
}
}
结果:
[color=green]The value of flagT is True
The value of flagF is False[/color]