Example #1
0
        public IntPtr MarshalManagedToNative(object managedObj)
        {
            string text = managedObj as string;

            if (string.IsNullOrEmpty(text))
            {
                return(IntPtr.Zero);
            }
            return(ObjC.GetSelector(text));
        }
        public IntPtr MarshalManagedToNative(object managedObj)
        {
            string selectorName = managedObj as string;

            if (string.IsNullOrEmpty(selectorName))
            {
                return(IntPtr.Zero);
            }

            var selector = ObjC.GetSelector(selectorName);

            return(selector);
        }