CaseInsensitiveComparer.Default 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与当前线程关联的CurrentCulture实例,该实例CaseInsensitiveComparer始终可用。
public:
static property System::Collections::CaseInsensitiveComparer ^ Default { System::Collections::CaseInsensitiveComparer ^ get(); };
public static System.Collections.CaseInsensitiveComparer Default { get; }
static member Default : System.Collections.CaseInsensitiveComparer
Public Shared ReadOnly Property Default As CaseInsensitiveComparer
属性值
该实例与CurrentCulture当前线程的实例CaseInsensitiveComparer相关联。
注解
CaseInsensitiveComparer使用无参数构造函数创建实例时,Thread.CurrentCulture将保存当前线程。 比较过程使用保存的区域性来确定排序顺序和大小写规则;因此,字符串比较可能具有不同的结果,具体取决于区域性。 有关区域性特定比较的详细信息,请参阅 System.Globalization 命名空间 和全球化和本地化。