[This is preliminary documentation and is subject to change.]
Author: Đonny
Adapter that adapts List<(Of <(<'T>)>)> into IReadOnlyList<(Of <(<'T>)>)> where TFrom is cublass of TTo
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public class ReadOnlyListAdapter<TFrom, TTo> : IReadOnlyList<TTo> where TFrom : TTo |
| Visual Basic |
|---|
Public Class ReadOnlyListAdapter(Of TFrom As TTo, TTo) _ Implements IReadOnlyList(Of TTo) |
| Visual C++ |
|---|
generic<typename TFrom, typename TTo> where TFrom : TTo public ref class ReadOnlyListAdapter : IReadOnlyList<TTo> |
| F# |
|---|
type ReadOnlyListAdapter<'TFrom, 'TTo when 'TFrom : 'TTo> = class interface IReadOnlyList<'TTo> end |
| JScript |
|---|
|
Type Parameters
- TFrom
- Type of items stored in List<(Of <(<'T>)>)> being adapted
- TTo
- Type of items this ReadOnlyListAdapter<(Of <(<'TFrom, TTo>)>)> should appear to be IReadOnlyList<(Of <(<'T>)>)> of. TFrom must inherit from or implement TTo
Remarks
If you doesn't need type conversion than you can use
Inheritance Hierarchy
System..::..Object
Tools.CollectionsT.GenericT..::..ReadOnlyListAdapter<(Of <(<'TFrom, TTo>)>)>
Tools.CollectionsT.GenericT..::..ReadOnlyListAdapter<(Of <(<'T>)>)>
Tools.CollectionsT.GenericT..::..ReadOnlyListAdapter<(Of <(<'TFrom, TTo>)>)>
Tools.CollectionsT.GenericT..::..ReadOnlyListAdapter<(Of <(<'T>)>)>
See Also
Version History
1.5.2
- (Release) VersionAttribute and AuthorAttribute removed