private void TryRemoveObserver(NSObject @object, string key) { try { @object.RemoveObserver(this, new NSString(key)); } catch { // yum yum } }
private void TryRemoveObserver(NSObject obj, string key) { try { obj.RemoveObserver(this, new NSString(key)); } catch (Exception ex) { Console.WriteLine(ex); // yum yum } }
public static void RemoveObserver(this NSObject obj, string key) { obj.RemoveObserver(helper, (NSString)key); }