a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
35 lines
440 B
C#
35 lines
440 B
C#
namespace C5
|
|
{
|
|
public class HashedArrayList<T>
|
|
{
|
|
public void Test ()
|
|
{
|
|
new HashSet <KeyValuePair<T,int>> (new KeyValuePairHasher<T,int> ());
|
|
}
|
|
}
|
|
|
|
public class HashSet<T>
|
|
{
|
|
public HashSet (IHasher<T> itemhasher)
|
|
{ }
|
|
}
|
|
|
|
public interface IHasher<T>
|
|
{
|
|
}
|
|
|
|
public struct KeyValuePair<K,V>
|
|
{
|
|
}
|
|
|
|
public sealed class KeyValuePairHasher<K,V>: IHasher<KeyValuePair<K,V>>
|
|
{
|
|
}
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{ }
|
|
}
|