{"action":"opened","issue":{"url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/50","labels_url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/50/comments","events_url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/50/events","html_url":"https://github.com/esskar/Serialize.Linq/issues/50","id":90700317,"number":50,"title":"serialization issues","user":{"login":"squarewave24","id":843437,"avatar_url":"https://avatars.githubusercontent.com/u/843437?v=3","gravatar_id":"","url":"https://api.github.com/users/squarewave24","html_url":"https://github.com/squarewave24","followers_url":"https://api.github.com/users/squarewave24/followers","following_url":"https://api.github.com/users/squarewave24/following{/other_user}","gists_url":"https://api.github.com/users/squarewave24/gists{/gist_id}","starred_url":"https://api.github.com/users/squarewave24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squarewave24/subscriptions","organizations_url":"https://api.github.com/users/squarewave24/orgs","repos_url":"https://api.github.com/users/squarewave24/repos","events_url":"https://api.github.com/users/squarewave24/events{/privacy}","received_events_url":"https://api.github.com/users/squarewave24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T14:55:08Z","updated_at":"2015-06-24T14:55:08Z","closed_at":null,"body":"This is a great utility and i'd love to make it work for me. \r\n\r\nMy first test was this simple predicate \r\n\r\n````js\r\n  var arr = new string[] {\"one\",\"two\"}; // initially this was a List<string> but couldn't make it work with serializer\r\n  var results = new myObj<MyType>().Where(x => arr.Contains(x.Code) && x.Date >= dateFrom);\r\n````\r\nif arr is List<string> I was getting a ton of issues complaining about serialization of List<string> and ArrayOfString. \r\n\r\nI noticed that I can do this \r\n\r\n````js\r\n  var bs = new BinarySerializer();\r\n  bs.AddKnownType(typeof(string[]));\r\n````\r\n\r\nwhenever I tried adding List<string> as a known type it would always complain that it either exists, or there was a conflict with List + Array being added together. So the only way I could make it work was registering known type string[] and using only this in my predicate. \r\n\r\nthe outcome however looks like this \r\n\r\n````js \r\nx => (value(System.String[]).Contains(x.Code) AndAlso ...\r\n````\r\n\r\nas you see it only calls ToString on the Array, and contents are not shown. "}}