bool FalseString, TrueString : bool « Data Types « C# / C Sharp






bool FalseString, TrueString

    

using System;
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);
    }
}

   
    
    
  








Related examples in the same category

1.bool variable
2.A static method that returns a Boolean value.
3.Using BoolUsing Bool
4.Demonstrate bool valuesDemonstrate bool values
5.Print a truth table for the logical operatorsPrint a truth table for the logical operators
6.Convert boolean value to "Yes" or "No"
7.Converts string to Boolean, throws an exception if not compatible
8.Convert string to Boolean. A return value indicates whether the conversion succeeded or failed.
9.Convert text values to boolean