hi all;
basic managed c++ question:
are there any "primitive types" (int, long) that inherit from System::Object
thus making them managed?
(something like the Integer class in java).
if so, conversion are provided, right?

cheers,
g.

Re: prmitive types and objects by Jens

Jens
Fri Nov 07 01:46:59 CST 2003


"Gideon" <gideon@dwl.co.uk.invalid> wrote in message
news:eov0d#HpDHA.688@TK2MSFTNGP10.phx.gbl...
> hi all;
> basic managed c++ question:
> are there any "primitive types" (int, long) that inherit from
System::Object
> thus making them managed?

Int32 i = 1;
Object* o = __box( i );
i = *static_cast<__box Int32*>( o );

Jens.