diff --git a/collections/IDict.cs b/collections/IDict.cs new file mode 100644 index 0000000..e9b7245 --- /dev/null +++ b/collections/IDict.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Collections; +namespace ln.types.collections +{ + public interface IDict : IDict + { + V this[K key] { get; set; } + + void Add(K key, V value); + void Remove(K key); + + bool ContainsKey(K key); + + IEnumerable Keys { get; } + IEnumerable 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; } + } +}