Пример #1
0
 // helper to avoid the (common pattern)
 //  var p = x == null ? null : x.Dictionary;
 static public NSDictionary GetDictionary(this DictionaryContainer self)
 {
     return(self == null ? null : self.Dictionary);
 }
Пример #2
0
 // helper to avoid the (common pattern)
 //  var p = x == null ? IntPtr.Zero : h.Dictionary.Handle;
 static public IntPtr GetHandle(this DictionaryContainer self)
 {
     return(self == null ? IntPtr.Zero : self.Dictionary.Handle);
 }