|
by Eric Gunnerson via Eric Gunnerson's Compendium : CSharp on 7/2/2008 7:22:00 PM
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 language provides both a call and callvirt instruction, with the callvirt being used to call virtual functions. But if you look through the code that C# generates, you will see that it generates a "callvirt" even in cases where there is no virtual function involved. Why does it do that?
I went back through the lang
... [ read more ]
|