Export (0) Print
Expand All

ImmutableDictionary<TKey, TValue>.ToBuilder Method

Creates an immutable dictionary with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.

Namespace:  System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public ImmutableDictionary<T>.Builder ToBuilder()

Return Value

Type: System.Collections.Immutable.ImmutableDictionary<TKey, TValue>.Builder
A collection with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.

This is an O(1) operation and results in only a single (small) memory allocation. The mutable collection that is returned is not thread safe.

Show:
© 2014 Microsoft