Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Protected fields | List of all members
Loyc.Collections.SelectList< ListT, T, TResult > Class Template Reference

Helper class: provides a modified view of an IList by transforming each element on-demand. Objects of this type are returned from MutableListExtensionMethods.LinqToLists.Select<T,TResult>(IList<T>,Func<T,TResult>) More...


Source file:
Inheritance diagram for Loyc.Collections.SelectList< ListT, T, TResult >:
Loyc.Collections.Impl.ListSourceBase< TResult >

Remarks

Helper class: provides a modified view of an IList by transforming each element on-demand. Objects of this type are returned from MutableListExtensionMethods.LinqToLists.Select<T,TResult>(IList<T>,Func<T,TResult>)

Template Parameters
Tinput type
TResultoutput type
ListTType of list being wrapped
Type Constraints
ListT :IList<T> 

Properties

new TResult this[int index] [get]
 
sealed override int Count [get]
 
- Properties inherited from Loyc.Collections.Impl.ListSourceBase< TResult >
abstract override int Count [get]
 
bool IsEmpty [get]
 
this[int index] [get]
 

Public Member Functions

 SelectList (ListT list, Func< T, TResult > selector)
 
override TResult TryGet (int index, out bool fail)
 
- Public Member Functions inherited from Loyc.Collections.Impl.ListSourceBase< TResult >
int IndexOf (T item)
 
Slice_< T > Slice (int start, int count)
 
override IEnumerator< T > GetEnumerator ()
 

Protected fields

ListT _list
 
Func< T, TResult > _selector
 

Additional Inherited Members

- Protected Member Functions inherited from Loyc.Collections.Impl.ListSourceBase< TResult >
int ThrowIndexOutOfRange (int index)