|
|
|
|
![]() ![]() |
Nov 13 2004, 03:42 PM
Post
#1
|
|
|
Member - Active Contributor Group: [HOSTED] Posts: 96 Joined: 9-October 04 Member No.: 1,064 |
well this is a new thing for me I read from somewhere..
it is that the premiting data types in both the languages differ in nature. java's builtin Datatypes are not inherited from the base class Object where as C sharps integer and the like data types have object as there baseclass but not surprisingly C sharps premitive datatypes get a located in the Stack instead of heep means there are still the value types. what are u'r coments Does the C sharp Compiler totaly diferent features to work with these data types? |
|
|
|
Jun 24 2005, 09:18 AM
Post
#2
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 23-June 05 Member No.: 6,512 |
The link between objects and primitive types is "boxing", a procedure that encapsulates a value type in an object when it is used where a object is required (such as passing a primitive type by reference). The whole boxing procedure is handled by the runtime and without needing the programmer to care about it.
You can find out much more about it by looking at: http://msdn.microsoft.com/library/default....nvaluetypes.asp |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 08:26 PM |