public static NSData FromUrl(string url, NSDataReadingOptions mask, out NSError error) { IntPtr errorHandle; var data = Runtime.GetNSObject <NSData>(ObjC.MessageSendIntPtr_NSUrl(_classHandle, "dataWithContentsOfURL:options:error:", url, (uint)mask, out errorHandle)); error = errorHandle == IntPtr.Zero ? null : Runtime.GetNSObject <NSError>(errorHandle); return(data); }
public static NSData FromUrl(string url) { return(Runtime.GetNSObject <NSData>(ObjC.MessageSendIntPtr_NSUrl(_classHandle, "dataWithContentsOfURL:", url))); }