加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 反编译.NET替换方法(v4.6.1)

发布时间:2020-12-15 04:29:06 所属栏目:百科 来源:网络整理
导读:我想看看怎么样 public String Replace(String oldValue,String newValue); mscorlib.dll(System.String)中的方法有效. 我用dotPeek反编译了mscorlib.dll,并在方法内部调用了ReplaceInternal方法,我找不到它 string s = ReplaceInternal(oldValue,newValue);
我想看看怎么样
public String Replace(String oldValue,String newValue);

mscorlib.dll(System.String)中的方法有效.

我用dotPeek反编译了mscorlib.dll,并在方法内部调用了ReplaceInternal方法,我找不到它

string s = ReplaceInternal(oldValue,newValue);

我甚至在GIT的开源.NET Core上搜索了这个方法,但没有运气.

请解释这种方法在哪里以及里面是什么?

解决方法

外部C代码在这里.

https://github.com/gbarnett/shared-source-cli-2.0/blob/master/clr/src/vm/comstring.cpp

1578行有

FCIMPL3(Object*,COMString::ReplaceString,StringObject* thisRefUNSAFE,StringObject* oldValueUNSAFE,StringObject* newValueUNSAFE)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读