string.replace(string,string) [英] string.replace(string, string)

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

问题描述

嘿伙计们,

我正在尝试检查string.Replace方法是如何实现的,看看那里使用了什么算法。

I am trying to check how string.Replace method is implemented and see what algorithm is used there.

但是,我无法从下面的链接中看到真实的代码。

Howver, I can't see the real code from the link below.

是否有任何参考我可以看到Replace方法的实际代码?

Is there any reference that I can see the actual code of Replace method?

https://referencesource.microsoft.com/

https://referencesource.microsoft.com/

推荐答案

如果是.NET Core Runtime,请从
下载存档 https://github.com/dotnet/corert ,然后查看文件:

In case of .NET Core Runtime, download the archive from https://github.com/dotnet/corert, then see the file:

        
corert-master \ src\System.Private.CoreLib\shared\System\String.Manipulation.cs

·         corert-master\src\System.Private.CoreLib\shared\System\String.Manipulation.cs

或搜索"替换("如果代码重新排列。





这篇关于string.replace(string,string)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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