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

Author: Bindu Bujji25 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

Author: Bindu Bujji25 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

Author: Vidhya26 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!