コード例 #1
0
        public static Object ToUnderlyingObject(this NSObject nsO)
        {
            if (nsO != null)
            {
                return(nsO.ToUnderlyingObject(null));
            }

            return(null);
        }
コード例 #2
0
        //------------------------------------------------------------------------------
        public object ToUnderlyingObject(object obj, Type preferedDestinationType)
        {
            NSObject nsObj = obj as NSObject;

            if (nsObj != null)
            {
                obj = nsObj.ToUnderlyingObject(preferedDestinationType);
            }

            return(obj);
        }