public static Object ToUnderlyingObject(this NSObject nsO) { if (nsO != null) { return(nsO.ToUnderlyingObject(null)); } return(null); }
//------------------------------------------------------------------------------ public object ToUnderlyingObject(object obj, Type preferedDestinationType) { NSObject nsObj = obj as NSObject; if (nsObj != null) { obj = nsObj.ToUnderlyingObject(preferedDestinationType); } return(obj); }