public override Set <MapNS.Entry <TKey, TValue> > entrySet() { DefaultSet <MapNS.DefaultEntry <TKey, TValue> > setCollection = new DefaultSet <MapNS.DefaultEntry <TKey, TValue> >(); foreach (TKey key in this.Keys) { TValue v = default(TValue); this.TryGetValue(key, out v); MapNS.DefaultEntry <TKey, TValue> e = new MapNS.DefaultEntry <TKey, TValue>(key, v); setCollection.add(e); } Set <MapNS.Entry <TKey, TValue> > returnValue = (Set <MapNS.Entry <TKey, TValue> >)setCollection; return(returnValue); }
public virtual Set <MapNS.Entry <K, V> > entrySet() { DefaultSet <MapNS.DefaultEntry <K, V> > setCollection = new DefaultSet <MapNS.DefaultEntry <K, V> >(); foreach (K key in this.Keys) { V v = default(V); this.TryGetValue(key, out v); MapNS.DefaultEntry <K, V> e = new MapNS.DefaultEntry <K, V>(key, v); setCollection.add(e); } Set <MapNS.Entry <K, V> > returnValue = (Set <MapNS.Entry <K, V> >)setCollection; return(returnValue); }