Exemplo n.º 1
0
        public static CKeyValuePair <TKey, TValue> Last <TKey, TValue>(this Dict <TKey, TValue> rDict)
        {
            if (rDict.Count == 0)
            {
                return(null);
            }

            return(new CKeyValuePair <TKey, TValue>(rDict.LastKey(), rDict.LastValue()));
        }
Exemplo n.º 2
0
 public static void RemoveLast <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     rDict.Collection.Remove(rDict.LastKey());
 }