A covariant list converts a list of the input type to a
read-only list of the more generic output type. The wrapped
list can be used to mimic covariance in method return types.
Namespace:
Gallio.Common.CollectionsAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public class CovariantList<TInput, TOutput> : IList<TOutput>, ICollection<TOutput>, IEnumerable<TOutput>, IEnumerable where TInput : |
| Visual Basic (Declaration) |
|---|
Public Class CovariantList(Of TInput As , TOutput) _ Implements IList(Of TOutput), ICollection(Of TOutput), _ IEnumerable(Of TOutput), IEnumerable |
Type Parameters
- TInput
- The input list type.
- TOutput
- The output list type.
Inheritance Hierarchy
System..::.Object
Gallio.Common.Collections..::.CovariantList<(Of <(TInput, TOutput>)>)
Gallio.Common.Collections..::.CovariantList<(Of <(TInput, TOutput>)>)
