Search Results for

    Show / Hide Table of Contents

    Class ItemSet<T>

    Inheritance
    System.Object
    ItemSet<T>
    Implements
    IItemSet<T>
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    IExpressEnumerable
    IItemSet
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.Common.Collections
    Assembly: Xbim.Common.dll
    Syntax
    public abstract class ItemSet<T> : IItemSet<T>, IList<T>, ICollection<T>, IEnumerable<T>, INotifyCollectionChanged, INotifyPropertyChanged, IExpressEnumerable, IItemSet, IList, ICollection, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    ItemSet(IPersistEntity, Int32, Int32)

    Declaration
    protected ItemSet(IPersistEntity entity, int capacity, int property)
    Parameters
    Type Name Description
    IPersistEntity entity
    System.Int32 capacity
    System.Int32 property

    Fields

    | Improve this Doc View Source

    IsEntitySet

    Declaration
    protected readonly bool IsEntitySet
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Property

    Declaration
    protected readonly int Property
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Internal

    Declaration
    protected List<T> Internal { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<T>
    | Improve this Doc View Source

    Item[Int32]

    Declaration
    public T this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    T
    | Improve this Doc View Source

    Model

    Declaration
    protected IModel Model { get; }
    Property Value
    Type Description
    IModel
    | Improve this Doc View Source

    OwningEntity

    Declaration
    public IPersistEntity OwningEntity { get; }
    Property Value
    Type Description
    IPersistEntity

    Methods

    | Improve this Doc View Source

    Add(T)

    Declaration
    public virtual void Add(T item)
    Parameters
    Type Name Description
    T item
    | Improve this Doc View Source

    AddRange(IEnumerable<T>)

    Declaration
    public void AddRange(IEnumerable<T> values)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> values
    | Improve this Doc View Source

    Clear()

    Declaration
    public virtual void Clear()
    | Improve this Doc View Source

    Contains(T)

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CopyTo(T[], Int32)

    Declaration
    public void CopyTo(T[] array, int arrayIndex)
    Parameters
    Type Name Description
    T[] array
    System.Int32 arrayIndex
    | Improve this Doc View Source

    CreateNestedSet()

    Declaration
    protected T CreateNestedSet()
    Returns
    Type Description
    T
    | Improve this Doc View Source

    FirstOrDefault(Func<T, Boolean>)

    Declaration
    public T FirstOrDefault(Func<T, bool> predicate)
    Parameters
    Type Name Description
    System.Func<T, System.Boolean> predicate
    Returns
    Type Description
    T
    | Improve this Doc View Source

    FirstOrDefault<TF>(Func<TF, Boolean>)

    Declaration
    public TF FirstOrDefault<TF>(Func<TF, bool> predicate)
        where TF : T
    Parameters
    Type Name Description
    System.Func<TF, System.Boolean> predicate
    Returns
    Type Description
    TF
    Type Parameters
    Name Description
    TF
    | Improve this Doc View Source

    GetAt(Int32)

    This function makes it possible to add nested lists if this is the case. It works like InsertAt is the object doesn't exist already. You cannot create lists with wholes.

    Declaration
    public T GetAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index of the object

    Returns
    Type Description
    T

    Object at specified index. If it is a nested list and it doesn't exist it gets created.

    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<T>
    | Improve this Doc View Source

    IndexOf(T)

    Declaration
    public int IndexOf(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Insert(Int32, T)

    Declaration
    public void Insert(int index, T item)
    Parameters
    Type Name Description
    System.Int32 index
    T item
    | Improve this Doc View Source

    Remove(T)

    Declaration
    public virtual bool Remove(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    RemoveAt(Int32)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index
    | Improve this Doc View Source

    Where<TW>(Func<TW, Boolean>)

    Declaration
    public IEnumerable<TW> Where<TW>(Func<TW, bool> predicate)
        where TW : T
    Parameters
    Type Name Description
    System.Func<TW, System.Boolean> predicate
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TW>
    Type Parameters
    Name Description
    TW

    Events

    | Improve this Doc View Source

    CollectionChanged

    Declaration
    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler
    | Improve this Doc View Source

    PropertyChanged

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

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICollection<T>.Add(T)

    Declaration
    void ICollection<T>.Add(T item)
    Parameters
    Type Name Description
    T item
    | Improve this Doc View Source

    ICollection<T>.Clear()

    Declaration
    void ICollection<T>.Clear()
    | Improve this Doc View Source

    ICollection<T>.Contains(T)

    Declaration
    bool ICollection<T>.Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ICollection<T>.CopyTo(T[], Int32)

    Declaration
    void ICollection<T>.CopyTo(T[] array, int arrayIndex)
    Parameters
    Type Name Description
    T[] array
    System.Int32 arrayIndex
    | Improve this Doc View Source

    ICollection<T>.Count

    Declaration
    int ICollection<T>.Count { get; }
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ICollection<T>.IsReadOnly

    Declaration
    bool ICollection<T>.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ICollection<T>.Remove(T)

    Declaration
    bool ICollection<T>.Remove(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ICollection.CopyTo(Array, Int32)

    Declaration
    void ICollection.CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array
    System.Int32 index
    | Improve this Doc View Source

    ICollection.Count

    Declaration
    int ICollection.Count { get; }
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ICollection.IsSynchronized

    Declaration
    bool ICollection.IsSynchronized { get; }
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ICollection.SyncRoot

    Declaration
    object ICollection.SyncRoot { get; }
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator
    | Improve this Doc View Source

    IList.Add(Object)

    Declaration
    int IList.Add(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    IList.Contains(Object)

    Declaration
    bool IList.Contains(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IList.IndexOf(Object)

    Declaration
    int IList.IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    IList.Insert(Int32, Object)

    Declaration
    void IList.Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    | Improve this Doc View Source

    IList.IsFixedSize

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IList.IsReadOnly

    Declaration
    bool IList.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IList.Item[Int32]

    Declaration
    object IList.this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    IList.Remove(Object)

    Declaration
    void IList.Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    Implements

    IItemSet<T>
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    IExpressEnumerable
    IItemSet
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    IEnumerableExtensions.AsTriplet<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim