Show / Hide Table of Contents

# Class AtomicCollection<TValue>

##### Inheritance

System.Object
AtomicCollection<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 AtomicCollection<TValue>

        where TValue : class

##### Type Parameters

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

### Constructors

| Improve this Doc View Source

#### AtomicCollection()

##### Declaration

    public AtomicCollection()

| Improve this Doc View Source

#### AtomicCollection(ICollection)

##### Declaration

    public AtomicCollection(ICollection c)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Collections.ICollection | c |

### Properties

| Improve this Doc View Source

#### Count

##### Declaration

    public int Count { get; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### IsReadOnly

##### Declaration

    public bool IsReadOnly { get; }

##### Property Value

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

| Improve this Doc View Source

#### Item[Int32]

##### Declaration

    public TValue this[int index] { get; set; }

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | index |

##### Property Value

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

### Methods

| Improve this Doc View Source

#### Add(TValue)

##### Declaration

    public int Add(TValue v)

##### Parameters

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

##### Returns

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### Clear()

##### Declaration

    public void Clear()

| Improve this Doc View Source

#### Contains(TValue)

##### Declaration

    public bool Contains(TValue v)

##### Parameters

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

##### Returns

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

| Improve this Doc View Source

#### CopyTo(TValue[], Int32)

##### Declaration

    public void CopyTo(TValue[] a, int index)

##### Parameters

Type | Name | Description
--- | --- | ---
TValue[] | a |
System.Int32 | index |

| Improve this Doc View Source

#### GetEnumerator()

##### Declaration

    public IEnumerator GetEnumerator()

##### Returns

Type | Description
--- | ---
System.Collections.IEnumerator |

| Improve this Doc View Source

#### GetEnumerator(Int32, Int32)

##### Declaration

    public IEnumerator GetEnumerator(int index, int count)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | index |
System.Int32 | count |

##### Returns

Type | Description
--- | ---
System.Collections.IEnumerator |

| Improve this Doc View Source

#### Remove(TValue)

##### Declaration

    public void Remove(TValue v)

##### Parameters

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

| Improve this Doc View Source

#### RemoveAt(Int32)

##### Declaration

    public void RemoveAt(int index)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | index |