两者有什么区别?我什么时候应该使用它们?

最佳答案

空无一人。
string.ToLower在后台调用TextInfo.ToLower

从String.cs:

    // Creates a copy of this string in lower case.
    public String ToLower() {
        return this.ToLower(CultureInfo.CurrentCulture);
    }

    // Creates a copy of this string in lower case.  The culture is set by culture.
    public String ToLower(CultureInfo culture) {
        if (culture==null) {
            throw new ArgumentNullException("culture");
        }
        return culture.TextInfo.ToLower(this);
    }

10-08 12:52