{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1727","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1727/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1727/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1727/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1727","id":182178838,"number":1727,"title":"Automapper v5.1.1 does not work with ObservableDictionary where Automapper 4 does","user":{"login":"jogibear9988","id":364896,"avatar_url":"https://avatars.githubusercontent.com/u/364896?v=3","gravatar_id":"","url":"https://api.github.com/users/jogibear9988","html_url":"https://github.com/jogibear9988","followers_url":"https://api.github.com/users/jogibear9988/followers","following_url":"https://api.github.com/users/jogibear9988/following{/other_user}","gists_url":"https://api.github.com/users/jogibear9988/gists{/gist_id}","starred_url":"https://api.github.com/users/jogibear9988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jogibear9988/subscriptions","organizations_url":"https://api.github.com/users/jogibear9988/orgs","repos_url":"https://api.github.com/users/jogibear9988/repos","events_url":"https://api.github.com/users/jogibear9988/events{/privacy}","received_events_url":"https://api.github.com/users/jogibear9988/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-11T05:44:59Z","updated_at":"2016-10-12T14:26:34Z","closed_at":null,"body":"I've a DTO with the following Property:\r\n\r\n    [DataContract(Name = \"A\")]\r\n    public class TagDTO : BasicDTO\r\n    {\r\n       [DataMember(Name = \"w\")]\r\n        public virtual ObservableDictionary<string, string> ReferencedTags { get; set; }\r\n    }\r\n\r\nWhen I trys to use Automapper to create a Map:\r\n\r\nvar config = new MapperConfiguration(cfg => cfg.CreateMap<TagDTO, TagDTO>());\r\n\r\nthen I got the following Exception:\r\n\r\n\"Ein Ausdruck vom Typ \"System.Object\" kann nicht für eine Zuweisung vom Typ \"System.Collections.Generic.KeyValuePair`2[System.String,System.String]\" verwendet werden.\"\r\n\r\nIn Line 37 of ExpressionExtension\r\nCode:\r\n\r\n           var loop = Block(new[] { enumeratorVar },\r\n                enumeratorAssign,\r\n                Loop(\r\n                    IfThenElse(\r\n                        Equal(moveNextCall, Constant(true)),\r\n                        Block(new[] { loopVar },\r\n                            Assign(loopVar, Property(enumeratorVar, \"Current\")),\r\n                            loopContent\r\n                        ),\r\n                        Break(breakLabel)\r\n                    ),\r\n                breakLabel)\r\n            );"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/253228510","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1727#issuecomment-253228510","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1727","id":253228510,"user":{"login":"jogibear9988","id":364896,"avatar_url":"https://avatars.githubusercontent.com/u/364896?v=3","gravatar_id":"","url":"https://api.github.com/users/jogibear9988","html_url":"https://github.com/jogibear9988","followers_url":"https://api.github.com/users/jogibear9988/followers","following_url":"https://api.github.com/users/jogibear9988/following{/other_user}","gists_url":"https://api.github.com/users/jogibear9988/gists{/gist_id}","starred_url":"https://api.github.com/users/jogibear9988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jogibear9988/subscriptions","organizations_url":"https://api.github.com/users/jogibear9988/orgs","repos_url":"https://api.github.com/users/jogibear9988/repos","events_url":"https://api.github.com/users/jogibear9988/events{/privacy}","received_events_url":"https://api.github.com/users/jogibear9988/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T14:26:34Z","updated_at":"2016-10-12T14:26:34Z","body":"what do you mean about my fix? we can additionaly only cast if the types are not assignable?"}}
{"actor":{"display_login":"jogibear9988"}}