Example

using System;

namespace Samples
{
  public class BooleanSample
  {
    public static void Main()
    {
      Boolean b = true;
      if(b)
        Console.WriteLine("'b' is true");
      b = false;
      if(!b)
        Console.WriteLine("'b' is not true now");
    }
  }
}
The output is
'b' is true
'b' is not true now

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.