Interface IItemSet<T>
Inherited Members
System.Collections.Generic.IList<T>.IndexOf(T)
System.Collections.Generic.IList<T>.Insert(System.Int32, T)
System.Collections.Generic.IList<T>.RemoveAt(System.Int32)
System.Collections.Generic.IList<T>.Item[System.Int32]
System.Collections.Generic.ICollection<T>.Add(T)
System.Collections.Generic.ICollection<T>.Clear()
System.Collections.Generic.ICollection<T>.Contains(T)
System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)
System.Collections.Generic.ICollection<T>.Remove(T)
System.Collections.Generic.ICollection<T>.Count
System.Collections.Generic.ICollection<T>.IsReadOnly
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Namespace: Xbim.Common
Assembly: Xbim.Common.dll
Syntax
public interface IItemSet<T> : IList<T>, ICollection<T>, IEnumerable<T>, INotifyCollectionChanged, INotifyPropertyChanged, IExpressEnumerable, IEnumerable, IItemSet
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceAddRange(IEnumerable<T>)
Convenient feature taken from List implementation which allows to add more items in one go.
Declaration
void AddRange(IEnumerable<T> values)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | values | Values to be added |
FirstOrDefault(Func<T, Boolean>)
Function which mimics IEnumerable feature hidden by the templated version otherwise
Declaration
T FirstOrDefault(Func<T, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
T | Firts or default item |
FirstOrDefault<TF>(Func<TF, Boolean>)
Function which mimics IQueryable feature of getting first or default item of defined type. Additional type safety security is provided by type constrain.
Declaration
TF FirstOrDefault<TF>(Func<TF, bool> predicate)
where TF : T
Parameters
Type | Name | Description |
---|---|---|
System.Func<TF, System.Boolean> | predicate | Logical predicate |
Returns
Type | Description |
---|---|
TF | First item satisfying both type and logical condition |
Type Parameters
Name | Description |
---|---|
TF | Type of requested item |
GetAt(Int32)
Declaration
T GetAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
T |
Where<TW>(Func<TW, Boolean>)
Function which mimics IQueryable feature of combining both type and logical condition. item of defined type. Additional type safety security is provided by type constrain.
Declaration
IEnumerable<TW> Where<TW>(Func<TW, bool> predicate)
where TW : T
Parameters
Type | Name | Description |
---|---|---|
System.Func<TW, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TW> | List of items satisfying both type and logical condition |
Type Parameters
Name | Description |
---|---|
TW | Requested type |