Convert bool value to string in CSharp
Description
The following code shows how to convert bool value to string.
Example
using System;//w ww . java 2 s.co m
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
bool b3 = true; // No problem.
bool b4 = false; // No problem.
Console.WriteLine("-> bool.FalseString: {0}", bool.FalseString);
Console.WriteLine("-> bool.TrueString: {0}", bool.TrueString);
}
}
The code above generates the following result.