32 lines
650 B
C#
32 lines
650 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections;
|
|
namespace ln.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);
|
|
|
|
new IEnumerable<K> Keys { get; }
|
|
new 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; }
|
|
}
|
|
}
|