Given the following class:
private class C { public int Id { get; set; } public int X { get; set; } }
The following LINQ query:
var results = collection.AsQueryable() .Select(x => new { X = x.X }) .Select(x => new { X = x.X }) .Select(x => x.X) .ToList();
throws an exception:
System.InvalidOperationException : More than one possible serializer found for <>f__AnonymousType96`1[System.Int32] in x.
- is duplicated by
-
CSHARP-5168 Using some LINQ function after a Union throws an Exception
- Closed