mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-12-14 00:40:26 +00:00
Embedding types
This commit is contained in:
@@ -59,6 +59,9 @@ public interface IMap
|
||||
//public void Clear();
|
||||
//public bool ContainsKey(object key);
|
||||
public object[] Serialize();
|
||||
|
||||
public IEnumerable GetKeys();
|
||||
public IEnumerable GetValues();
|
||||
}
|
||||
|
||||
public class Map<KT, VT> : Dictionary<KT, VT>, IMap // IEnumerable<KeyValuePair<KT, VT>>
|
||||
@@ -238,6 +241,9 @@ public class Map<KT, VT> : Dictionary<KT, VT>, IMap // IEnumerable<KeyValuePair<
|
||||
return rt.ToArray();
|
||||
}
|
||||
|
||||
public IEnumerable GetKeys() => Keys.ToArray();
|
||||
public IEnumerable GetValues() => Values.ToArray();
|
||||
|
||||
//public VT this[KT index]
|
||||
//{
|
||||
// get
|
||||
|
||||
Reference in New Issue
Block a user