使用ildasm查看字符串比较方法 [英] Using ildasm to view the string comparison methods

查看:80
本文介绍了使用ildasm查看字符串比较方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用ildasm来查看string.Compare()方法在后台如何工作.

I'm trying to use ildasm to see how the string.Compare() method is working behind the scenes.

使用ILSpy,我已将其跟踪到System.Globalization中的内部方法,该方法称为CompareInfo.InternalCompareString().但是,ildasm甚至无法在mscorelib中看到此函数.我已经检查过了,ildasm可以看到私有功能,但是 不是这个.

Using ILSpy, I've tracked it down to an internal method in System.Globalization, called CompareInfo.InternalCompareString().  However, ildasm can't even see this function inside mscorelib.  I've checked, and ildasm can see private functions, but not this.

我在这里缺少什么吗?-mscorelib中的此功能吗?如果是的话,如何在ildasm中查看它?

Am I missing something here - is this function in mscorelib, and if so, how can I view it in ildasm?


推荐答案

这是因为实现是由运行时本身提供的.中的评论 参考源建议它来自 COMNlsInfo :: InternalCompareString .
This is because the implementation is provided by the runtime itself. A comment in the reference source suggests that it comes from COMNlsInfo::InternalCompareString.


这篇关于使用ildasm查看字符串比较方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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