[Mono-list] Boxed types in C#

Jeroen Frijters jeroen@sumatra.nl
Wed, 12 Jun 2002 11:02:05 +0200


This is a very good question, although not very appropriate for the
Mono-list. (I would suggest DOTNET-CX, DOTNET-CLR or ADVANCED-DOTNET as
better places for this topic. See http://discuss.develop.com for more
info on these lists).

Now to (partially) answer your question, the current specification of
the CLI does not provide a typed reference to boxed value types, and
this is IMHO unfortunate. Managed C++ provides its fictional typed
reference (e.g. boxed int) by providing a wrapper object that is
structurally compatible with a boxed value type.

Microsoft has hinted (although I don't remember where) that future
versions of the CLR might provide support for typed references to boxed
value types.

Regards,
Jeroen

> -----Original Message-----
> From: mono-list-admin@ximian.com 
> [mailto:mono-list-admin@ximian.com] On Behalf Of Stuart Ballard
> Sent: Tuesday, June 11, 2002 19:59
> To: mono-list@ximian.com
> Subject: [Mono-list] Boxed types in C#

<snip>