Forums » .NET » ASP.NET »

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


Posted Date: 25 Aug 2008      Posted By:: sahasra     Member Level: Silver    Member Rank: 1964     Points: 1   Responses: 4



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



Responses

#286653    Author: Bindu Bujji      Member Level: Gold      Member Rank: 0     Date: 25/Aug/2008   Rating: 2 out of 52 out of 5     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      Member Level: Gold      Member Rank: 0     Date: 25/Aug/2008   Rating: 2 out of 52 out of 5     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      Member Level: Gold      Member Rank: 0     Date: 26/Aug/2008   Rating: 2 out of 52 out of 5     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!





 
Post Reply

 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.



Next : When do you use virutal keyword?
Previous : regarding Login screen window in asp.net
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages

Subscribe to Subscribers
Awards & Gifts
Talk to Webmaster Tony John

Online Members

More...
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India