Show / Hide Table of Contents

# Class AtomicDictionary<TKey, TValue>

##### Inheritance

System.Object
AtomicDictionary<TKey, TValue>

##### Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ.State

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class AtomicDictionary<TKey, TValue>

        where TKey : class where TValue : class

##### Type Parameters

Name | Description
--- | ---
TKey |
TValue |

### Properties

| Improve this Doc View Source

#### Item[TKey]

##### Declaration

    public TValue this[TKey key] { get; set; }

##### Parameters

Type | Name | Description
--- | --- | ---
TKey | key |

##### Property Value

Type | Description
--- | ---
TValue |

| Improve this Doc View Source

#### Keys

##### Declaration

    public AtomicCollection<TKey> Keys { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<TKey> |

| Improve this Doc View Source

#### Values

##### Declaration

    public AtomicCollection<TValue> Values { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<TValue> |

### Methods

| Improve this Doc View Source

#### Add(TKey, TValue)

##### Declaration

    public void Add(TKey k, TValue v)

##### Parameters

Type | Name | Description
--- | --- | ---
TKey | k |
TValue | v |

| Improve this Doc View Source

#### Clear()

##### Declaration

    public void Clear()

| Improve this Doc View Source

#### ContainsKey(TKey)

##### Declaration

    public bool ContainsKey(TKey k)

##### Parameters

Type | Name | Description
--- | --- | ---
TKey | k |

##### Returns

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### ContainsValue(TValue)

##### Declaration

    public bool ContainsValue(TValue v)

##### Parameters

Type | Name | Description
--- | --- | ---
TValue | v |

##### Returns

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### Remove(TKey)

##### Declaration

    public bool Remove(TKey v)

##### Parameters

Type | Name | Description
--- | --- | ---
TKey | v |

##### Returns

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### TryGetValue(TKey, out TValue)

##### Declaration

    public bool TryGetValue(TKey key, out TValue val)

##### Parameters

Type | Name | Description
--- | --- | ---
TKey | key |
TValue | val |

##### Returns

Type | Description
--- | ---
System.Boolean |