[Mono-list] Unboxing values from embedded mono

Paolo Molaro lupus@ximian.com
Wed, 13 Aug 2003 18:54:08 +0200


On 08/13/03 Perry, James wrote:
> I'd like to build a byte array, but I'm not sure what MonoClass object I
> should be giving to mono_array_new. If I'm not mistaken
> mono_defaults.byte_class is System.Byte but that's the boxed type; I'd like
> send a byte[] rather than a System.Byte[] if possible.

byte and System.Byte are the same thing, byte_class is exactly what you
need here.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better