ConcurrentDictionary<TKey, TValue>.ToArray Method

.NET Framework 4.6 and 4.5

Copies the key and value pairs stored in the System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue> to a new array.

Namespace:  System.Collections.Concurrent
Assemblies:   mscorlib (in mscorlib.dll)
  System.Collections.Concurrent (in System.Collections.Concurrent.dll)

public KeyValuePair<TKey, TValue>[] ToArray()

Return Value

Type: System.Collections.Generic.KeyValuePair<TKey, TValue>[]
A new array containing a snapshot of key and value pairs copied from the System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft