Пример #1
0
        public bool CopyImageSource(CGImageSource image, CGCopyImageSourceOptions options, out NSError error)
        {
            NSDictionary o = null;

            if (options != null)
            {
                o = options.ToDictionary();
            }
            try {
                return(CopyImageSource(image, o, out error));
            }
            finally {
                if (options != null)
                {
                    o.Dispose();
                }
            }
        }
Пример #2
0
 public bool CopyImageSource(CGImageSource image, CGCopyImageSourceOptions?options, out NSError?error)
 {
     using var o = options?.ToDictionary();
     return(CopyImageSource(image, o, out error));
 }