Show / Hide Table of Contents

    Class ConcurrentObservableCollection<T>

    Provides thread-safe concurrent access to an observable collection.

    Inheritance
    System.Object
    ConcurrentObservableCollection<T>
    Implements
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Namespace: Sensus.Concurrent
    Assembly: SensusAndroid.dll
    Syntax
    public class ConcurrentObservableCollection<T> : Object, INotifyCollectionChanged, INotifyPropertyChanged, ICollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    ConcurrentObservableCollection()

    Declaration
    public ConcurrentObservableCollection()

    ConcurrentObservableCollection(IConcurrent)

    Declaration
    public ConcurrentObservableCollection(IConcurrent concurrent)
    Parameters
    Type Name Description
    IConcurrent concurrent

    Properties

    Concurrent

    Declaration
    public IConcurrent Concurrent { get; }
    Property Value
    Type Description
    IConcurrent

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    Add(T)

    Declaration
    public void Add(T item)
    Parameters
    Type Name Description
    T item

    Clear()

    Declaration
    public void Clear()

    Contains(T)

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    Remarks

    I don't think we need to lock this action down. Unit Tests seem to confirm this idea.

    CopyTo(T[], Int32)

    Declaration
    public void CopyTo(T[] array, int arrayIndex)
    Parameters
    Type Name Description
    T[] array
    System.Int32 arrayIndex
    Remarks

    I don't think we need to lock this action down. Unit Tests seem to confirm this idea.

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<T>

    Insert(Int32, T)

    Declaration
    public void Insert(int index, T item)
    Parameters
    Type Name Description
    System.Int32 index
    T item

    Remove(T)

    Declaration
    public bool Remove(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean

    Events

    CollectionChanged

    Declaration
    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX