呼叫和Callvirt [英] Call and Callvirt

查看:156
本文介绍了呼叫和Callvirt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CIL指令呼叫之间的区别是什么Callvirt?

What is the difference between the CIL instructions "Call" and "Callvirt"?

推荐答案

通话是调用非虚,静态或超类方法,即的目标电话是不受压倒一切。 callvirt 是调用虚拟方法(因此,如果的一个子类,覆盖方法,子类的版本被称为代替)。

call is for calling non-virtual, static, or superclass methods, i.e., the target of the call is not subject to overriding. callvirt is for calling virtual methods (so that if this is a subclass that overrides the method, the subclass version is called instead).

这篇关于呼叫和Callvirt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆