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

Helper class for treating a collection of a derived type as a collection of a base type or interface. More...


Source file:
Inheritance diagram for Loyc.Collections.UpCastListSource< T, TOut >:
Loyc.Collections.Impl.ListSourceBase< TOut >

Remarks

Helper class for treating a collection of a derived type as a collection of a base type or interface.

LCExt.UpCast<T, TResult>(IReadOnlyCollection<T>)

Type Constraints
T :TOut 

Properties

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

Public Member Functions

 UpCastListSource (IListSource< T > original)
 
override TOut TryGet (int index, out bool fail)
 
- Public Member Functions inherited from Loyc.Collections.Impl.ListSourceBase< TOut >
int IndexOf (T item)
 
Slice_< T > Slice (int start, int count)
 
override IEnumerator< T > GetEnumerator ()
 

Additional Inherited Members

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