You must Sign In to post a response.

What is the Difference between Int and Int32 in .Net?

What is the Difference between Int and Int32 in .Net?


Comments

#286653    Author: Bindu Bujji    25 Aug 2008 Member Level: Gold   Points : 4

Int32 - "Represents a 32-bit signed integer."

Int - "The int keyword denotes an integral type that stores values according to the size and range shown in the following table."

There's no such thing as Int in .NET. There's int in C#, which is the same thing as Int32, but that's C#-specific (and case-sensitive

#286655    Author: Bindu Bujji    25 Aug 2008 Member Level: Gold   Points : 4

Int32 - "Represents a 32-bit signed integer."

Int - "The int keyword denotes an integral type that stores values according to the size and range shown in the following table."

There's no such thing as Int in .NET. There's int in C#, which is the same thing as Int32, but that's C#-specific (and case-sensitive

#286878    Author: Vidhya    26 Aug 2008 Member Level: Gold   Points : 5

Hi,


Simple data types have different names in Visual Basic .NET and Visual C# .NET. For example, Integer in Visual Basic .NET is int in Visual C# .NET. However, System.Int32, the .NET Framework base type for which Integer and int are aliases, can be used in both languages. Visual C# .NET also supports the signed byte, unsigned short, unsigned int, and unsigned long data types, which are not available in Visual Basic .NET.

Happy programming!

Hope it helps!


This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.