Table of Contents

Class TypedEntityObjectList

Namespace
TimeCockpit.Data
Assembly
TimeCockpit.Data.dll

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

public class TypedEntityObjectList : ITypedList, IEnumerable<EntityObject>, IEnumerable
Inheritance
Object
TypedEntityObjectList
Implements
ITypedList
IEnumerable<EntityObject>
IEnumerable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

TypedEntityObjectList(IEnumerable<EntityObject>)

Initializes a new instance of the TypedEntityObjectList class.

public TypedEntityObjectList(IEnumerable<EntityObject> entityObjects)

Parameters

entityObjects IEnumerable<EntityObject>

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.

public TypedEntityObjectList(IEnumerable<EntityObject> entityObjects, ModelEntityBase underlyingModelEntity)

Parameters

entityObjects IEnumerable<EntityObject>

The entity objects.

underlyingModelEntity ModelEntityBase

The underlying model entity.

Methods

GetEnumerator()

Gets the enumerator.

public IEnumerator<EntityObject> GetEnumerator()

Returns

IEnumerator<EntityObject>

An enumerator.

GetItemProperties(PropertyDescriptor[])

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

public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors)

Parameters

listAccessors PropertyDescriptor[]

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

Returns

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.

public string GetListName(PropertyDescriptor[] listAccessors)

Parameters

listAccessors PropertyDescriptor[]

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

Returns

String

The name of the list.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerator IEnumerable.GetEnumerator()

Returns

IEnumerator

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