using System; using System.Collections; using System.Collections.Generic; public class Map : IEnumerable> { public Map Inverse() { Map map = new Map(); foreach (KeyValuePair pair in this) map.Add(pair.Value, pair.Key); // Cannot resolve method Add(TValue, TKey) return map; } public void Add(params IEnumerable>[] items) { throw new NotImplementedException(); } public void Add(TKey key, TValue value) { throw new NotImplementedException(); } public IEnumerator> GetEnumerator() { throw new NotImplementedException(); } IEnumerator IEnumerable.GetEnumerator() { throw new NotImplementedException(); } }