IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
ListExtensions.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
3namespace java.util
4{
5
6 public static class ListExtensions
7 {
8
15 public static IList<T> AsList<T>(this List list) => list switch
16 {
17 IList<T> c => c,
18 List l => new ListWrapper<T>(l),
19 };
20
21 }
22
23}
static IList< T > AsList< T >(this List list)
Returns a IList<T> that wraps the specified List.