CollectionUtilities..::..AsReadOnlyList<(Of <(<'T>)>)> Method
Casts an IList<T> into a IReadOnlyList<T>. If the cast fails, the list is
wrapped in a ReadOnlyCollection<T>.
Namespace:
Tortuga.AnchorAssembly: Tortuga.Anchor (in Tortuga.Anchor.dll)
Syntax
[NotNullIfNotNullAttribute] public static Nullable<IReadOnlyList<T>> AsReadOnlyList<T>( this Nullable<IEnumerable<T>> source )
<NotNullIfNotNullAttribute> _ <ExtensionAttribute> _ Public Shared Function AsReadOnlyList(Of T) ( _ source As Nullable(Of IEnumerable(Of T)) _ ) As Nullable(Of IReadOnlyList(Of T))
Type Parameters
- T
Parameters
- source
- Type: Nullable<(Of <(<'IEnumerable<(Of <(<'T>)>)>>)>)>
The source. If the source is null, the result will be null.

