CaseInsensitiveComparer.Default 屬性

定義

取得 CaseInsensitiveComparer 的執行個體,它與目前執行緒的 CurrentCulture 相關聯,而且永遠可以使用。

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

屬性值

CaseInsensitiveComparer 的執行個體,與目前執行緒的 CurrentCulture 相關聯。

備註

CaseInsensitiveComparer使用無參數建構函式建立實例時,Thread.CurrentCulture會儲存目前線程的 。 比較程式會使用儲存的文化特性來判斷排序順序和大小寫規則;因此,根據文化特性,字串比較可能會有不同的結果。 如需特定文化特性比較的詳細資訊,請參閱 System.Globalization 命名空間和 全球化和當地語系化

適用於

另請參閱