IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
MapExtensions.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
3namespace java.util
4{
5
6 public static class MapExtensions
7 {
8
16 public static IDictionary<TKey, TValue> AsDictionary<TKey, TValue>(this Map map) => map switch
17 {
18 IDictionary<TKey, TValue> i => i,
19 Map i => new MapWrapper<TKey, TValue>(i),
20 };
21
22 }
23
24}
static IDictionary< TKey, TValue > AsDictionary< TKey, TValue >(this Map map)
Returns a IDictionary<TKey, TValue> implementation for the given Map.