Click or drag to resize

ObservableListAdapterT Class

Inheritance Hierarchy
SystemObject
  TomsToolbox.ObservableCollectionsObservableListAdapterT

Namespace:  TomsToolbox.ObservableCollections
Assembly:  TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll) Version: 1.0.75.0
Syntax
public class ObservableListAdapter<T> : IList, 
	ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

T
The type of elements in the list.

The ObservableListAdapterT type exposes the following members.

Constructors
  NameDescription
Public methodObservableListAdapterT
Initializes a new instance of the ObservableListAdapterT class.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection.
Public propertyIsFixedSize
Gets a value indicating whether the IList has a fixed size.
Public propertyIsReadOnly
Gets a value indicating whether the IList is read-only.
Public propertyIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Public propertyItem
Gets or sets the element at the specified index.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the IList.
Public methodClear
Removes all items from the IList.
Public methodContains
Determines whether the IList contains a specific value.
Public methodCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodIndexOf
Determines the index of a specific item in the IList.
Public methodInsert
Inserts an item to the IList at the specified index.
Public methodRemove
Removes the first occurrence of a specific object from the IList.
Public methodRemoveAt
Removes the IList item at the specified index.
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when the collection changes.
Public eventPropertyChanged
Occurs when a property value changes.
Top
Extension Methods
  NameDescription
Public Extension MethodAddRange
Adds the elements of the specified collection to the end of the list.
(Defined by CollectionExtensions.)
Public Extension MethodObservableCastTTarget
Returns an observable collection of objects of type TTarget that mirrors the source collection.

[NotNull, ItemCanBeNull]

(Defined by ObservableExtensions.)
Public Extension MethodRemoveRange
Removes a range of elements from the list.
(Defined by CollectionExtensions.)
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also