IKVM11
11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
ListExtensions.cs
Go to the documentation of this file.
1
using
System.Collections.Generic;
2
3
namespace
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
}
java.util.ListExtensions
Definition
ListExtensions.cs:7
java.util.ListExtensions.AsList< T >
static IList< T > AsList< T >(this List list)
Returns a IList<T> that wraps the specified List.
java.util.ListWrapper
Definition
ListWrapper.cs:8
java.util
Definition
CollectionExtensions.cs:4
src
IKVM.Java.Extensions
java
util
ListExtensions.cs
Generated by
1.12.0