ImmutableSortedDictionary.CreateBuilder 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateBuilder<TKey,TValue>() |
建立新的、不可變的排序字典產生器。 |
CreateBuilder<TKey,TValue>(IComparer<TKey>) |
建立新的、不可變的排序字典產生器。 |
CreateBuilder<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>) |
建立新的、不可變的排序字典產生器。 |
CreateBuilder<TKey,TValue>()
建立新的、不可變的排序字典產生器。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue>::Builder ^ CreateBuilder();
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> ();
static member CreateBuilder : unit -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>.Builder
Public Function CreateBuilder(Of TKey, TValue) () As ImmutableSortedDictionary(Of TKey, TValue).Builder
類型參數
- TKey
字典所儲存的索引鍵類型。
- TValue
字典所儲存的值類型。
傳回
不可變的集合產生器。
適用於
CreateBuilder<TKey,TValue>(IComparer<TKey>)
建立新的、不可變的排序字典產生器。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue>::Builder ^ CreateBuilder(System::Collections::Generic::IComparer<TKey> ^ keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IComparer<TKey> keyComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IComparer<TKey>? keyComparer);
static member CreateBuilder : System.Collections.Generic.IComparer<'Key> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>.Builder
Public Function CreateBuilder(Of TKey, TValue) (keyComparer As IComparer(Of TKey)) As ImmutableSortedDictionary(Of TKey, TValue).Builder
類型參數
- TKey
字典所儲存的索引鍵類型。
- TValue
字典所儲存的值類型。
參數
- keyComparer
- IComparer<TKey>
索引鍵比較子。
傳回
不可變的集合產生器。
適用於
CreateBuilder<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>)
建立新的、不可變的排序字典產生器。
public:
generic <typename TKey, typename TValue>
static System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue>::Builder ^ CreateBuilder(System::Collections::Generic::IComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public static System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Builder CreateBuilder<TKey,TValue> (System.Collections.Generic.IComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
static member CreateBuilder : System.Collections.Generic.IComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>.Builder
Public Function CreateBuilder(Of TKey, TValue) (keyComparer As IComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableSortedDictionary(Of TKey, TValue).Builder
類型參數
- TKey
字典所儲存的索引鍵類型。
- TValue
字典所儲存的值類型。
參數
- keyComparer
- IComparer<TKey>
索引鍵比較子。
- valueComparer
- IEqualityComparer<TValue>
值比較子。
傳回
不可變的集合產生器。