Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Protected fields | List of all members
Loyc.Collections.UpCastSource< 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.UpCastSource< T, TOut >:
Loyc.Collections.Impl.ReadOnlyCollectionBase< 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>(IListSource<T>)

Type Constraints
T :TOut 

Properties

override int Count [get]
 
- Properties inherited from Loyc.Collections.Impl.ReadOnlyCollectionBase< TOut >
abstract int Count [get]
 

Public Member Functions

 UpCastSource (IReadOnlyCollection< T > source)
 
override IEnumerator< TOut > GetEnumerator ()
 
- Public Member Functions inherited from Loyc.Collections.Impl.ReadOnlyCollectionBase< TOut >
bool Contains (T item)
 

Protected fields

IReadOnlyCollection< T > s