Click or drag to resize

RouletteDictionaryTKey, TValueGetRandomKey Method

Gets a random key from the dictionary.

Namespace:  Scaleout.Collections
Assembly:  Scaleout.Collections (in Scaleout.Collections.dll) Version: 1.0.3.0 (1.0.3.0)
Syntax
C#
public TKey GetRandomKey()

Return Value

Type: TKey
A random key from the dictionary.
Exceptions
ExceptionCondition
InvalidOperationException The dictionary is empty.
See Also