A
AshokG
Hi,
In search of the differences between struct and class I found this MSDN Doc
on Boxed Value Types:
http://msdn2.microsoft.com/en-us/library/f08s4k28(VS.90).aspx
The output is specified as this if you run this code
----------
////// doing this with a value type
4
2147483647
2147483647
////// doing this with a normal type
1
1
0
-------
I wonder I'm getting this output when I runf this code as it is.
---------------
////// doing this with a value type
4
4
2147483647
////// doing this with a normal type
1
1
0
--------------
Is this a bug or the ValueType semantics what specified in this doc is
proved wrong.
What should I assume?
Regards,
Ashok
In search of the differences between struct and class I found this MSDN Doc
on Boxed Value Types:
http://msdn2.microsoft.com/en-us/library/f08s4k28(VS.90).aspx
The output is specified as this if you run this code
----------
////// doing this with a value type
4
2147483647
2147483647
////// doing this with a normal type
1
1
0
-------
I wonder I'm getting this output when I runf this code as it is.
---------------
////// doing this with a value type
4
4
2147483647
////// doing this with a normal type
1
1
0
--------------
Is this a bug or the ValueType semantics what specified in this doc is
proved wrong.
What should I assume?
Regards,
Ashok