[Mono-list] Support for Marshal.PtrToStructure in mono?
Jonathan Pryor
jonpryor@vt.edu
Tue, 04 Jan 2005 21:40:44 -0500
On Tue, 2005-01-04 at 13:48 +0000, Kala B wrote:
> Hi,
> mono supports Marshal.PtrToStructure when the
> structure has a char[] with Charset = Unicode, but
> does not support a string!!
<snip/>
> Is there any specific reason/ major difference for
> mono supporting char[] with Marshal.PtrToStructure and
> not adding supporting String?
I would assume this: someone needed char[] marshaling, and either:
(a) added a bugzilla entry and someone implemented it
(b) implemented support on their own
(c) bribed someone to implement support for them. :-)
Apparently none of the above occurred for string marshaling (though I
haven't checked bugzilla to make sure this is true).
- Jon