string.IndexOf(string)的StringComparison方法是什么?

What is the StringComparison method of string.IndexOf(string)?

我知道 string.IndexOf("some string") 正在进行区分大小写和区分文化的比较。

MSDN page.

[...] This method performs a word (case-sensitive and culture-sensitive) search using the current culture. The search begins at the first character position of this instance and continues until the last character position. [...]

但是,这是否意味着它等同于使用string.IndexOf("some string", StringComparison.CurrentCulture)
我想知道 StringComparison 的哪个精确成员正在使用或等同于使用。

是的。

这是源代码:https://source.dot.net/#System.Private.CoreLib/String.Searching.cs,cf9e6bfe83442551,references

public int IndexOf(string value)
{
    return IndexOf(value, StringComparison.CurrentCulture);
}

是的,.NET Framework(和核心)源代码可用,所以这里是相关代码:https://referencesource.microsoft.com/#mscorlib/system/string.cs,2307

public int IndexOf(String value) {
            return IndexOf(value, StringComparison.CurrentCulture);
        }