ScaleOut Software Collections for .NET
ScaleOut Software Collections for .NET
Scaleout.Collections
RouletteDictionary(TKey, TValue) Class
RouletteDictionary(TKey, TValue) Methods
Add Method
Clear Method
ContainsKey Method
ContainsValue Method
GetEnumerator Method
GetRandomKey Method
GetRandomKeyAndValue Method
GetRandomValue Method
Remove Method
RemoveRandom Method
RemoveRandomAndGet Method
SetAndMaintainCount Method
Trim Method
TryGetValue Method
RouletteDictionary
TKey
,
TValue
Add Method
Adds the specified key and value to the dictionary.
Namespace:
Scaleout.Collections
Assembly:
Scaleout.Collections (in Scaleout.Collections.dll) Version: 1.0.3.0 (1.0.3.0)
Syntax
C#
Copy
public
void
Add
( TKey
key
, TValue
value
)
Parameters
key
Type:
TKey
The key of the element to add.
value
Type:
TValue
The value of the element to add. The value can be null for reference types.
Implements
IDictionary
TKey, TValue
Add(TKey, TValue)
Exceptions
Exception
Condition
ArgumentException
An element with the same key already exists in the dictionary.
See Also
Reference
RouletteDictionary
TKey, TValue
Class
Scaleout.Collections Namespace
Copyright (C), 2019 by ScaleOut Software, Inc.