Search Results for

    Show / Hide Table of Contents

    Class TypedEntityObjectList

    A wrapper class that takes a list of EntityObjects and provides information about the properties of an EntityObject.

    Inheritance
    System.Object
    TypedEntityObjectList
    Implements
    System.ComponentModel.ITypedList
    System.Collections.Generic.IEnumerable<EntityObject>
    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: TimeCockpit.Data
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class TypedEntityObjectList : ITypedList, IEnumerable<EntityObject>, IEnumerable

    Constructors

    TypedEntityObjectList(IEnumerable<EntityObject>)

    Initializes a new instance of the TypedEntityObjectList class.

    Declaration
    public TypedEntityObjectList(IEnumerable<EntityObject> entityObjects)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<EntityObject> entityObjects

    The entity objects that are contained in the implementation of System.ComponentModel.ITypedList.

    TypedEntityObjectList(IEnumerable<EntityObject>, ModelEntityBase)

    Initializes a new instance of the TypedEntityObjectList class.

    Declaration
    public TypedEntityObjectList(IEnumerable<EntityObject> entityObjects, ModelEntityBase underlyingModelEntity)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<EntityObject> entityObjects

    The entity objects.

    ModelEntityBase underlyingModelEntity

    The underlying model entity.

    Methods

    GetEnumerator()

    Gets the enumerator.

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

    An enumerator.

    Implements
    System.Collections.Generic.IEnumerable<T>.GetEnumerator()

    GetItemProperties(PropertyDescriptor[])

    Returns the System.ComponentModel.PropertyDescriptorCollection that represents the properties on each item used to bind data.

    Declaration
    public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors)
    Parameters
    Type Name Description
    System.ComponentModel.PropertyDescriptor[] listAccessors

    An array of System.ComponentModel.PropertyDescriptor objects to find in the collection as bindable. This can be null.

    Returns
    Type Description
    System.ComponentModel.PropertyDescriptorCollection

    The System.ComponentModel.PropertyDescriptorCollection that represents the properties on each item used to bind data.

    Remarks

    If the instance was passed a list of EntityObjects, the property descriptor collection is derived from the list of EntityObjects. If the instance was not passed a non-empty list and a ModelEntityBase was passed, the property type collection is also derived from the EntityObject list. If the list is null, the property descriptor collection is derived from the ModelEntityBase.

    GetListName(PropertyDescriptor[])

    Returns the name of the list.

    Declaration
    public string GetListName(PropertyDescriptor[] listAccessors)
    Parameters
    Type Name Description
    System.ComponentModel.PropertyDescriptor[] listAccessors

    An array of System.ComponentModel.PropertyDescriptor objects, for which the list name is returned. This can be null.

    Returns
    Type Description
    System.String

    The name of the list.

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Returns an enumerator that iterates through a collection.

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    An System.Collections.IEnumerator object that can be used to iterate through the collection.

    Implements
    System.Collections.IEnumerable.GetEnumerator()
    In This Article
    Back to top Copyright © 2020 software architects gmbh