Comparer.Default 字段

定义

表示 Comparer 的实例,它与当前线程的 CurrentCulture 关联。Represents an instance of Comparer that is associated with the CurrentCulture of the current thread. 此字段为只读。This field is read-only.

public: static initonly System::Collections::Comparer ^ Default;
public static readonly System.Collections.Comparer Default;
 staticval mutable Default : System.Collections.Comparer
Public Shared ReadOnly Default As Comparer 

字段值

注解

比较过程使用Thread.CurrentCulture当前线程的来确定排序顺序和大小写规则。Comparison procedures use the Thread.CurrentCulture of the current thread to determine the sort order and casing rules. 根据区域性, 字符串比较可能会产生不同的结果。String comparisons might have different results depending on the culture. 有关区域性特定比较的详细信息, 请参阅System.Globalization命名空间和全球化和本地化For more information on culture-specific comparisons, see the System.Globalization namespace and Globalization and Localization.

适用于

另请参阅