Class ObservableListWrap<T>
Envuelve una lista genérica para proveerla de notificación de cambios en el contenido de la colección.
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.Mvvm.dll
Syntax
public class ObservableListWrap<T> : ObservableWrap<T, IList<T>>, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanged, INotifyCollectionChanged, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | Tipo de elementos de la lista. |
Constructors
| Edit this page View SourceObservableListWrap()
Inicializa una nueva instancia de la clase ObservableListWrap<T>.
Declaration
public ObservableListWrap()
ObservableListWrap(IList<T>)
Inicializa una nueva instancia de la clase ObservableListWrap<T>.
Declaration
public ObservableListWrap(IList<T> collection)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | collection |
Properties
| Edit this page View Sourcethis[int]
Permite acceder de forma indexada al contenido de este ObservableListWrap<T>.
Declaration
public T this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Índice del elemento a obtener o establecer. |
Property Value
Type | Description |
---|---|
T | El elemento encontrado en el índice especificado dentro de la colección. |
Methods
| Edit this page View SourceContains(T)
Determina si la secuencia subyacente contiene al elemento especificado.
Declaration
public override bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | Elemento a buscar dentro de la secuencia. |
Returns
Type | Description |
---|---|
bool | true si la secuencia contiene al elemento especificado, false en caso contrario. |
Overrides
| Edit this page View SourceIndexOf(T)
Determina el índice de un elemento específico dentro del ObservableListWrap<T>.
Declaration
public int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | Elemento del cual obtener el índice. |
Returns
Type | Description |
---|---|
int | El índice del elemento especificado. |
Insert(int, T)
Inserta un elemento dentro de este ObservableListWrap<T> en un índice específico.
Declaration
public void Insert(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
int | index | Posición en la cual insertar el nuevo elemento. |
T | item | Elemento a insertar en el índice especificado. |
RemoveAt(int)
Quita el elemento de este ObservableListWrap<T> en el índice especificado.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Índice del elemento a remover. |