3 namespace ObjCRuntime {
5 internal interface INativeObject {
11 static class NativeObjectHelper {
13 // help to avoid the (too common pattern)
14 // var p = x == null ? IntPtr.Zero : x.Handle;
15 static public IntPtr GetHandle (this INativeObject self)
17 return self == null ? IntPtr.Zero : self.Handle;