{"action":"created","issue":{"url":"https://api.github.com/repos/dotliquid/dotliquid/issues/175","repository_url":"https://api.github.com/repos/dotliquid/dotliquid","labels_url":"https://api.github.com/repos/dotliquid/dotliquid/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/dotliquid/dotliquid/issues/175/comments","events_url":"https://api.github.com/repos/dotliquid/dotliquid/issues/175/events","html_url":"https://github.com/dotliquid/dotliquid/pull/175","id":143586930,"number":175,"title":"Fixes Issue with 'An item with the same key has already been added.' #164","user":{"login":"joeburdick","id":4406897,"avatar_url":"https://avatars.githubusercontent.com/u/4406897?v=3","gravatar_id":"","url":"https://api.github.com/users/joeburdick","html_url":"https://github.com/joeburdick","followers_url":"https://api.github.com/users/joeburdick/followers","following_url":"https://api.github.com/users/joeburdick/following{/other_user}","gists_url":"https://api.github.com/users/joeburdick/gists{/gist_id}","starred_url":"https://api.github.com/users/joeburdick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeburdick/subscriptions","organizations_url":"https://api.github.com/users/joeburdick/orgs","repos_url":"https://api.github.com/users/joeburdick/repos","events_url":"https://api.github.com/users/joeburdick/events{/privacy}","received_events_url":"https://api.github.com/users/joeburdick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-25T20:14:41Z","updated_at":"2016-06-16T10:02:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotliquid/dotliquid/pulls/175","html_url":"https://github.com/dotliquid/dotliquid/pull/175","diff_url":"https://github.com/dotliquid/dotliquid/pull/175.diff","patch_url":"https://github.com/dotliquid/dotliquid/pull/175.patch"},"body":"Fixes Issue with 'An item with the same key has already been added.' #164\r\n\r\nThis fixes an issue with TypeResolution in Drop.cs. If `Type.GetProperties(Bindingflags flags)` returns a list  of properties with duplicate names, `GetMemberDictionary<T>(IEnumerable<T> members)` will throw a `ArgumentException` with message \"An item with the same key has already been added.\"\r\n\r\nThis can be reproduced calling `GetMemberDictionary `on the properties for class `Bar` with this class hierarchy:\r\n\r\n```\r\n    public class Foo\r\n    {\r\n        public string Name { get; set; }\r\n    }\r\n\r\n    public class Bar : Foo\r\n    {\r\n        public new int Name { get; set; }\r\n    }\r\n```\r\n\r\nThe properties returned by `Type.GetProperties(Bindingflags flags)` will have `PropertyInfo`s with duplicate names in this case because the `Name` property on `Bar` will appear as well as the `Name` property on `Foo`.\r\n\r\nSo, my solution is to filter properties by name by only selecting the property with the most derived `DeclaredType`."},"comment":{"url":"https://api.github.com/repos/dotliquid/dotliquid/issues/comments/226442232","html_url":"https://github.com/dotliquid/dotliquid/pull/175#issuecomment-226442232","issue_url":"https://api.github.com/repos/dotliquid/dotliquid/issues/175","id":226442232,"user":{"login":"haf","id":193115,"avatar_url":"https://avatars.githubusercontent.com/u/193115?v=3","gravatar_id":"","url":"https://api.github.com/users/haf","html_url":"https://github.com/haf","followers_url":"https://api.github.com/users/haf/followers","following_url":"https://api.github.com/users/haf/following{/other_user}","gists_url":"https://api.github.com/users/haf/gists{/gist_id}","starred_url":"https://api.github.com/users/haf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haf/subscriptions","organizations_url":"https://api.github.com/users/haf/orgs","repos_url":"https://api.github.com/users/haf/repos","events_url":"https://api.github.com/users/haf/events{/privacy}","received_events_url":"https://api.github.com/users/haf/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T10:02:08Z","updated_at":"2016-06-16T10:02:08Z","body":"Could you please rebase this on master?"}}
{"actor":{"display_login":"haf"}}