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

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


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

Remarks

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

Template Parameters
Tinput type
TResultoutput type
ListTType of list being wrapped
Type Constraints
ListT :IReadOnlyList<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

 SelectReadOnlyList (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)