{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1896","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1896/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1896/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1896/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1896","id":199521438,"number":1896,"title":"AutoMapper select default implementation for ICollection<T>","user":{"login":"AsValeO","id":14953687,"avatar_url":"https://avatars.githubusercontent.com/u/14953687?v=3","gravatar_id":"","url":"https://api.github.com/users/AsValeO","html_url":"https://github.com/AsValeO","followers_url":"https://api.github.com/users/AsValeO/followers","following_url":"https://api.github.com/users/AsValeO/following{/other_user}","gists_url":"https://api.github.com/users/AsValeO/gists{/gist_id}","starred_url":"https://api.github.com/users/AsValeO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsValeO/subscriptions","organizations_url":"https://api.github.com/users/AsValeO/orgs","repos_url":"https://api.github.com/users/AsValeO/repos","events_url":"https://api.github.com/users/AsValeO/events{/privacy}","received_events_url":"https://api.github.com/users/AsValeO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-09T10:40:31Z","updated_at":"2017-01-09T14:19:06Z","closed_at":null,"body":"```\r\npublic class Foo\r\n{\r\n    public Foo()\r\n    {\r\n        Bar = new HashSet<int>();\r\n        Bar2 = new HashSet<string>();\r\n    }\r\n\r\n    public virtual ICollection<int> Bar { get; set; }\r\n    public virtual ICollection<string> Bar2 { get; set; }\r\n}\r\n```\r\nWhen AutoMapper maps instance of this class, it maps `ICollection<T>` to `List<T>`. It should be `HashSet<T>.` How can I select default implementation for `ICollection<T>`? Class instance has properties of type `HashSet<T>` assigned in constructor.\r\n[Unanswered question on SO](http://stackoverflow.com/questions/41520897/automapper-select-default-implementation-for-icollectiont)"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/271295136","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1896#issuecomment-271295136","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1896","id":271295136,"user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T14:19:06Z","updated_at":"2017-01-09T14:19:06Z","body":"Of course you can. You just have to keep them in sync."}}
{"actor":{"display_login":"lbargaoanu"}}