primitive data types in .NET
-
hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.
-
hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.
Hi, In .Net primitive types are indentified through keywords like Byte, int. These are the aliases from the Types that are defined in System namespace. Thanks SGS
-
hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.
.NET does have primitive data types like int, short, long, float, double, char, bool, string... All primitive data types, except string, are value types (structs). Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.
I would say that .net doesn't have any primitive types but the languages can have. I come to this conclusion as in the Visual Basic specification(point 7.3) stands: "The primitive types are identified through keywords, which are aliases for predefined types in the System namespace." http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbls7/html/vblrfvbspec6\_2.asp So for the framework there are no primitive types just value types and reference types but for languages there can exists primitive types.