Tech Off Post

Single Post Permalink

View Thread: null + null = ?
  • User profile image
    Manip

    You are aware that both true, false and null have a value. Null is ascii 0, so it is a correct string. 

    true = 1, the value. And false = 0, the value. 

    Try this:

    int bluh;
    bluh = Convert.ToInt32 (false);
    Console.WriteLine( bluh );
    bluh = Convert.ToInt32 (true);
    Console.WriteLine( bluh );
    Console.ReadLine();