Ejemplo n.º 1
0
        public static Object ToUnderlyingObject(this NSObject nsO)
        {
            if (nsO != null)
            {
                return(nsO.ToUnderlyingObject(null));
            }

            return(null);
        }
Ejemplo n.º 2
0
        //------------------------------------------------------------------------------
        public object ToUnderlyingObject(object obj, Type preferedDestinationType)
        {
            NSObject nsObj = obj as NSObject;

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

            return(obj);
        }