阅读背景:

callvirt .NET指令如何用于接口?

来源:互联网 

Explaining virtual dispatching to someone is easy: every object has a pointer to a table as part of its data. There are N virtual methods on the class. Every call to a particular method i indexes the object when it arrives and calls the ith method in the table. Every class that implements method X() will have the code for method X() in the same ith index. Explaining virtual dispatching to someone is ea




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: