Search Results for

    Show / Hide Table of Contents

    Class ObservableList<T>

    IList<T> where collection (and values eventually) changes are listenable.

    Inheritance
    object
    ObservableList<T>
    Namespace: GGL.Observer
    Assembly: GGL.dll
    Syntax
    public class ObservableList<T>
    Type Parameters
    Name Description
    T

    Class or basic type.

    Constructors

    | Edit this page View Source

    ObservableList(bool)

    Create an observable empty list.

    Declaration
    public ObservableList(bool observeItem = true)
    Parameters
    Type Name Description
    bool observeItem

    Decide if values specific changes are listened too.

    | Edit this page View Source

    ObservableList(IEnumerable<Observable<T>>, bool)

    Create an observable list from another.

    Declaration
    public ObservableList(IEnumerable<Observable<T>> collection, bool observeItem = true)
    Parameters
    Type Name Description
    IEnumerable<Observable<T>> collection

    Well... the starting list I guess?

    bool observeItem

    Decide if values specific changes are listened too.

    | Edit this page View Source

    ObservableList(int, bool)

    Create an observable list with capacity.

    Declaration
    public ObservableList(int capacity, bool observeItem = true)
    Parameters
    Type Name Description
    int capacity

    List capacity.

    bool observeItem

    Decide if values specific changes are listened too.

    Methods

    | Edit this page View Source

    Add(T)

    Add raw item after setting it as an observable item

    Declaration
    public Observable<T> Add(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    Observable<T>

    Created observable item

    | Edit this page View Source

    AddRange(params Observable<T>[])

    Add several items

    Declaration
    public void AddRange(params Observable<T>[] items)
    Parameters
    Type Name Description
    Observable<T>[] items
    | Edit this page View Source

    AddRange(params T[])

    Add several items after setting them as observable items.

    Declaration
    public void AddRange(params T[] items)
    Parameters
    Type Name Description
    T[] items

    Events

    | Edit this page View Source

    OnChange

    Declaration
    public event Action OnChange
    Event Type
    Type Description
    Action

    Event raised if collection is edited.

    Extension Methods

    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T, int>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.Shuffle<T>(IEnumerable<T>)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX