ConcurrentTokenizedLinkedList<'TKey, 'TValue> Type

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.

Constructors

Constructor Description

ConcurrentTokenizedLinkedList()

Full Usage: ConcurrentTokenizedLinkedList()

Initializes a new instance of the ConcurrentTokenizedLinkedList class.

Instance members

Instance member Description

this.Clear

Full Usage: this.Clear

Clears all items in the list.

this.Count

Full Usage: this.Count

Returns: int

Gets the number of items in the list.

Returns: int

this.TryAddFirst

Full Usage: this.TryAddFirst

Parameters:
    key : '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.

key : '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.

this.TryAddLast

Full Usage: this.TryAddLast

Parameters:
    key : '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.

key : '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.

this.TryTakeFirst

Full Usage: this.TryTakeFirst

Parameters:
    key : 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.

key : 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.

this.TryTakeLast

Full Usage: this.TryTakeLast

Parameters:
    key : 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.

key : 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.