Concurrent linked list with the restriction that its members are unique, i.e. an item identified by a key can appear only once in the list.
Constructor | Description |
Full Usage:
ConcurrentTokenizedLinkedList()
|
Instance member | Description |
Full Usage:
this.Clear
|
Clears all items in the list. |
Full Usage:
this.Count
Returns: int
|
Gets the number of items in the list.
|
Full Usage:
this.TryAddFirst
Parameters:
'TKey
-
The key that identifies the item.
value : 'TValue
-
The item's value.
Returns: bool
True if the item was added to the list. If another item with the same key was already present in the list, the item is not added to the list, and the return value is false .
|
Tries to add an item as the first item of the list.
|
Full Usage:
this.TryAddLast
Parameters:
'TKey
-
The key that identifies the item.
value : 'TValue
-
The item's value.
Returns: bool
True if the item was added to the list. If another item with the same key was already present in the list, the item is not added to the list, and the return value is false.
|
Tries to add an item as the last item of the list.
|
Full Usage:
this.TryTakeFirst
Parameters:
byref<'TKey>
-
If successful, contains the key that was used to add the item.
value : byref<'TValue>
-
if successful, contains the value of the item.
Returns: bool
True if the operation was successful. If the list contains no items, the return value is false.
|
Tries to take the first item from the list.
|
Full Usage:
this.TryTakeLast
Parameters:
byref<'TKey>
-
If successful, contains the key that was used to add the item.
value : byref<'TValue>
-
if successful, contains the value of the item.
Returns: bool
True if the operation was successful. If the list contains no items, the return value is false.
|
Tries to take the last item from the list.
|