Simple interface IDict<K,V>

master
Harald Wolff 2020-02-24 17:24:45 +01:00
parent e3f5e42574
commit b643916f00
1 changed files with 31 additions and 0 deletions

View File

@ -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; }
}
}