Submitted by admin on Thu, 03/04/2010 - 20:17
Posted in
We find both bool and Boolean types in C#. It just made me wonder if there is any difference between the two types. It appears there is no difference between the two as both Represent the Boolean Type. So bool is just an alias to the System.Boolean type.
Here is a Reference to the list of Aliases in C#
|
C# Type |
.NET Framework Type |
|
bool |
System.Boolean |
|
byte |
System.Byte |
|
sbyte |
System.SByte |
|
char |
System.Char |
|
decimal |
System.Decimal |
|
double |
System.Double |
|
float |
System.Single |
|
int |
System.Int32 |
|
uint |
System.UInt32 |
|
long |
System.Int64 |
|
ulong |
System.UInt64 |
|
object |
System.Object |
|
short |
System.Int16 |
|
ushort |
System.UInt16 |
|
string |
System.String |
Reference:
http://msdn.microsoft.com/en-us/library/ya5y69ds(VS.80).aspx
