Viewing the IL code generated from a compiled expression
Yes! Use this tool: https://github.com/drewnoakes/il-visualizer This was incredibly useful when I was implementing and debugging Compile, as I’m sure you can imagine.
Yes! Use this tool: https://github.com/drewnoakes/il-visualizer This was incredibly useful when I was implementing and debugging Compile, as I’m sure you can imagine.
See this old blog post by Eric Gunnerson. Here’s the text of the post: Why does C# always use callvirt? This question came up on an internal C# alias, and I thought the answer would be of general interest. That’s assuming that the answer is correct – it’s been quite a while. The .NET IL … Read more
In theory, a static method should perform slightly better than an instance method, all other things being equal, because of the extra hidden this parameter. In practice, this makes so little difference that it’ll be hidden in the noise of various compiler decisions. (Hence two people could “prove” one better than the other with disagreeing … Read more