Does something like a VB “Variant” implementation exist which uses C#'s dynamic dispatch?
问题 I realize that it goes against the strongly typed nature of C#, but I find that when working with dynamic objects in the language, some of the more useful features typically found in JavaScript or PowerShell are simply not practical. For example, the following C# code will fail at runtime and it's obvious why. dynamic x = 1.0; int y = x; But that makes the dynamic features of C# pretty limited when dealing with loosely typed data such as that produced by JSON payloads or CSV where subtle