Is there a difference between bool and Boolean? [duplicate]

1

Is there any difference compared to the types bool and Boolean ? It seems to me that both have the same characteristics. I would like to know if there are any differences between these types.

Example of implementing both types:

class Program
{
    static void Main(string[] args)
    {
        bool variavelBool = false;
        Boolean variavelBoolean = variavelBool;

        Console.WriteLine("variavelBool = {0}, variavelBoolean = {1}", variavelBool, variavelBoolean);
        Console.ReadKey();
    }
}

Output:

  

VariableBool = False, VariableBoolean = False

    
asked by anonymous 26.03.2016 / 15:31

1 answer

2

In C # bool is only a nickname for System.Boolean , just like int is a nickname for System.Int32 . The complete list of aliases can be found here.

    
26.03.2016 / 15:41