public KeyValuePair <int, T> EntryAt(int key)
 {
     clojure.lang.IMapEntry entry = _clojureVector.entryAt((key));
     if (key >= 0 && key < Count)
     {
         return(new KeyValuePair <int, T>((int)entry.key(), (T)entry.val()));
     }
     throw new KeyNotFoundException(string.Format("Key {0} was not found.", key));
 }
Example #2
0
 public KeyValuePair <TK, TV> EntryAt(TK key)
 {
     if (ContainsKey(key))
     {
         clojure.lang.IMapEntry clojureMapEntry = _clojureMap.entryAt(key);
         return(new KeyValuePair <TK, TV>((TK)clojureMapEntry.key(), (TV)clojureMapEntry.val()));
     }
     throw new KeyNotFoundException(string.Format("Key {0} was not found.", key));
 }