[Mono-devel-list] The first (attempt to checkin) managed collation patch

Ben Maurer bmaurer at ximian.com
Thu Jul 21 15:03:29 EDT 2005


On Fri, 2005-07-22 at 03:51 +0900, Atsushi Eno wrote:
> Hi,
> 
> Ben Maurer wrote:
> > On Fri, 2005-07-22 at 03:18 +0900, Atsushi Eno wrote:
> > 
> >>So, you mean, I should avoid managed resource but acquire those
> >>pointers from the runtime via icall, right?
> > 
> > 
> > Managed resources are loaded as an IntPtrStream. Inside corlib, you can
> > cast to that type and get the IntPtr (possibly adding a call to do
> > that).
> 
> Is that cast really kind of thing on that I can depend?

Yes, sorta. We need to change this class to be called
UnmanagedMemoryStream for 2.0
http://msdn2.microsoft.com/library/13e02eft.aspx. This will probably
mean that we rename IntPtrStream and make it internal for 1.0. When that
gets done, obviously the person will need to change your code.

But, I think you can rely on the manifest resource thingy returning this
special stream type. Maybe you should add an internal overload that
returns the specialized type just to make things feel safer.

Btw, an interesting blog on this subject:
http://blogs.msdn.com/bclteam/archive/2004/10/18/244171.aspx

-- Ben




More information about the Mono-devel-list mailing list