Click or drag to resize

Collection Class

Collection with events to monitor if an item was added/removed.
Inheritance Hierarchy

Namespace:  Slash.Unity.DataBind.Core.Data
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class Collection : IEnumerable, 
	IDataProvider

The Collection type exposes the following members.

Constructors
  NameDescription
Protected methodCollection
Initializes a new instance of the Collection class
Top
Properties
  NameDescription
Public propertyCount
Number of items in the collection.
Public propertyIsInitialized
Indicates if data provider is initialized to provide a valid value.
Public propertyItem
Gets/Sets the item at the specified index.
Public propertyItemType
Type of items in this collection.
Public propertyValue
Current data value.
Top
Methods
  NameDescription
Public methodAddNewItem
Adds a new item to the collection.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Protected methodGetItem
Returns the item at the specified index of the collection.
Protected methodGetNonGenericEnumerator
Returns a non-generic enumerator for the collection.
Protected methodOnClearedItems
Called when the collection was cleared.
Protected methodOnItemAdded
Called when an item was added.
Protected methodOnItemInserted
Called when an item was inserted at a specific position.
Protected methodOnItemRemoved
Called when an item was removed.
Protected methodOnValueChanged
Called when the collection changed.
Public methodRemove
Removes the specified item from the collection.
Protected methodSetItem
Sets the item at the specified index.
Top
Events
  NameDescription
Public eventCleared
Called when the collection was cleared.
Public eventClearedItems
Called when the collection was cleared.
Public eventItemAdded
Called when an item was added.
Public eventItemInserted
Called when an item was inserted.
Public eventItemRemoved
Called when an item was removed.
Public eventValueChanged
Called when the collection changed.
Top
Extension Methods
  NameDescription
Public Extension MethodImplode
Creates a separated string from the items of a collection. Mostly used for debugging issues.
(Defined by CollectionUtils.)
Top
See Also