Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Protected fields | List of all members
Loyc.Collections.SelectList< 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 LinqToLists.Select<T,TResult>(IList<T>,Func<T,TResult>) More...


Source file:
Inheritance diagram for Loyc.Collections.SelectList< 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 LinqToLists.Select<T,TResult>(IList<T>,Func<T,TResult>)

Template Parameters
Tinput type
TResultoutput type

Properties

IList< T > OriginalList [get]
 
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 (IList< T > list, Func< T, TResult > selector)
 
sealed 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

IList< T > _list
 
Func< T, TResult > _selector
 

Additional Inherited Members

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