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()));
        }