tags:

views:

51

answers:

2

Hi,

Does anybody know what is the "obj_address" public method in .Net Object class Mono implementation?

Thank you,

Michael

A: 

Kornél Pál submitted a patch that renamed it to UnsafeAddrOfPinnedObject which would be a lot more descriptive. I haven't dug around to see if his rename makes sense. The rename was not accepted.

jball
Yes, but what is this method for? Is it for the Boehm GC support?I don't see any other reason to introduce method which is not part of the standard library API.
Michael Donkhin
It's not public, it's *internal* to Mono's corlib.
mhutch
Oh, sorry, didn't notice it...But, am I right about the purpose of this method?Thanks.
Michael Donkhin
+1  A: 

It returns the address of a pinned object.

It is internal to Mono, so you really should not depend on it. We reserve the right to remove it and shuffle it around at will.

miguel.de.icaza
Thank you, Miguel.
Michael Donkhin