Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
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.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]
 

Public Member Functions

 SelectReadOnlyList (ListT list, Func< T, TResult > selector)
 
override TResult TryGet (int index, out bool fail)
 

Protected fields

ListT _list
 
Func< T, TResult > _selector