{"action":"created","issue":{"url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/272","repository_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins","labels_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/272/comments","events_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/272/events","html_url":"https://github.com/jamesmontemagno/Xamarin.Plugins/issues/272","id":146550220,"number":272,"title":"Contacts - Problem with example Code","user":{"login":"CR4567","id":10132368,"avatar_url":"https://avatars.githubusercontent.com/u/10132368?v=3","gravatar_id":"","url":"https://api.github.com/users/CR4567","html_url":"https://github.com/CR4567","followers_url":"https://api.github.com/users/CR4567/followers","following_url":"https://api.github.com/users/CR4567/following{/other_user}","gists_url":"https://api.github.com/users/CR4567/gists{/gist_id}","starred_url":"https://api.github.com/users/CR4567/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CR4567/subscriptions","organizations_url":"https://api.github.com/users/CR4567/orgs","repos_url":"https://api.github.com/users/CR4567/repos","events_url":"https://api.github.com/users/CR4567/events{/privacy}","received_events_url":"https://api.github.com/users/CR4567/received_events","type":"User","site_admin":false},"labels":[{"id":252177934,"url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/labels/Contacts","name":"Contacts","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-04-07T08:50:53Z","updated_at":"2016-11-24T13:31:45Z","closed_at":"2016-09-13T19:29:23Z","body":"Please take a moment to fill out the following (change to preview to check or place x in []):\n\nThis is a \n- [x] Bug\n- [ ] Feature Request\n\nWhich plugin does this impact:\n- [ ] Battery\n- [ ] Connectivity\n- [x] Contacts\n- [ ] DeviceInfo\n- [ ] ExternalMaps\n- [ ] Geolocator\n- [ ] Media\n- [ ] Permissions\n- [ ] Settings\n- [ ] Text To Speech\n- [ ] Vibrate\n- Other:\n\nVersion Number of Plugin: 2.0.2 beta1\nDevice Tested On: \nSimulator Tested On: iOS 9.3\n### Expected Behavior\n\nGets all contacts in a list\n### Actual Behavior\n\nThrows an error \n\"Expression of type 'System.Collections.Generic.IEnumerable`1[Plugin.Contacts.Abstractions.Contact]' cannot be used for return type 'System.Linq.IQueryable`1[Plugin.Contacts.Abstractions.Contact]'\"\nwhen trying to parse the result to a List of Contacts.\n### Steps to reproduce the Behavior\n\nJust doing your example code\n"},"comment":{"url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/comments/262776931","html_url":"https://github.com/jamesmontemagno/Xamarin.Plugins/issues/272#issuecomment-262776931","issue_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/272","id":262776931,"user":{"login":"PedroHFranco","id":10779853,"avatar_url":"https://avatars.githubusercontent.com/u/10779853?v=3","gravatar_id":"","url":"https://api.github.com/users/PedroHFranco","html_url":"https://github.com/PedroHFranco","followers_url":"https://api.github.com/users/PedroHFranco/followers","following_url":"https://api.github.com/users/PedroHFranco/following{/other_user}","gists_url":"https://api.github.com/users/PedroHFranco/gists{/gist_id}","starred_url":"https://api.github.com/users/PedroHFranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PedroHFranco/subscriptions","organizations_url":"https://api.github.com/users/PedroHFranco/orgs","repos_url":"https://api.github.com/users/PedroHFranco/repos","events_url":"https://api.github.com/users/PedroHFranco/events{/privacy}","received_events_url":"https://api.github.com/users/PedroHFranco/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T13:31:45Z","updated_at":"2016-11-24T13:31:45Z","body":"I got the same issue.....\r\non this code:\r\nforeach (Contact contact in book.OrderBy(c => c.DisplayName))\r\n{\r\n      // Note: on certain android device(Htc for example) it show name in DisplayName Field\r\n      contacts.Add(new Domain.Model.Contacts() { FirstName = contact.DisplayName, LastName = contact.LastName });\r\n}"}}
{"actor":{"display_login":"PedroHFranco"}}