From b643916f00e3b843136558fb284cf0a5a3a21ac6 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Mon, 24 Feb 2020 17:24:45 +0100 Subject: [PATCH] Simple interface IDict --- collections/IDict.cs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 collections/IDict.cs 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; } + } +}