ScaleOut Software Collections for .NET
ScaleOut Software Collections for .NET
Scaleout.Collections
RecentDictionary(TKey, TValue) Class
RecentDictionary(TKey, TValue) Methods
Add Method
Clear Method
ContainsKey Method
ContainsValue Method
GetEnumerator Method
Remove Method
RemoveAndGetLeastRecent Method
RemoveAndGetMostRecent Method
RemoveLeastRecent Method
RemoveMostRecent Method
SetAndMaintainCount Method
Trim Method
TryGetValue Method
RecentDictionary
<
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
RecentDictionary
<
TKey, TValue
>
Class
Scaleout.Collections Namespace
Copyright (C), 2019 by ScaleOut Software, Inc.