Generic type inference not working with dynamic?
问题 I have recently been playing with Massive, a Micro-ORM which returns collections of IEnumerable<dynamic>. I discovered an unexpected issue when I tried to query one of those collections using LINQ. While the compiler seems to have no issues whatsoever to work out that string.Format returns a string even when one of the arguments passed to it is declared as dynamic... dynamic dynamicString = "d"; // just using a string here for simplicity, same problem occurs with any other type string