Simple interface IDict<K,V>
parent
e3f5e42574
commit
b643916f00
|
@ -0,0 +1,31 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections;
|
||||||
|
namespace ln.types.collections
|
||||||
|
{
|
||||||
|
public interface IDict<K,V> : IDict
|
||||||
|
{
|
||||||
|
V this[K key] { get; set; }
|
||||||
|
|
||||||
|
void Add(K key, V value);
|
||||||
|
void Remove(K key);
|
||||||
|
|
||||||
|
bool ContainsKey(K key);
|
||||||
|
|
||||||
|
IEnumerable<K> Keys { get; }
|
||||||
|
IEnumerable<V> Values { get; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IDict
|
||||||
|
{
|
||||||
|
object this[object key] { get; set; }
|
||||||
|
|
||||||
|
void Add(object key, object value);
|
||||||
|
void Remove(object key);
|
||||||
|
|
||||||
|
bool ContainsKey(object key);
|
||||||
|
|
||||||
|
IEnumerable Keys { get; }
|
||||||
|
IEnumerable Values { get; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue