From 57609d11df2a78483206bb0a23b0c84c3fe8699e Mon Sep 17 00:00:00 2001 From: Robert N Date: Mon, 2 May 2016 17:53:07 -0700 Subject: [PATCH] Correct delegate signature on CNContactStoreEnumerateContactsHandler The signature on `CNContactStoreEnumerateContactsHandler` should include a `ref`on the `bool stop` parameter in order to have the ability to early exit the enumeration. --- src/contacts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contacts.cs b/src/contacts.cs index c90136d80d11..deda8cf1a8a7 100644 --- a/src/contacts.cs +++ b/src/contacts.cs @@ -414,7 +414,7 @@ public interface CNLabelContactRelationKey { } public delegate void CNContactStoreRequestAccessHandler (bool granted, NSError error); - public delegate void CNContactStoreEnumerateContactsHandler (CNContact contact, bool stop); + public delegate void CNContactStoreEnumerateContactsHandler (CNContact contact, ref bool stop); [iOS (9,0), Mac (10,11, onlyOn64: true)] [BaseType (typeof (NSObject))]