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(); } } }
public bool CopyImageSource(CGImageSource image, CGCopyImageSourceOptions?options, out NSError?error) { using var o = options?.ToDictionary(); return(CopyImageSource(image, o, out error)); }