예제 #1
0
파일: Dict.cs 프로젝트: huang8603543/GuoKe
 public static CKeyValuePair <TKey, TValue> First <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     if (rDict.Count == 0)
     {
         return(null);
     }
     return(new CKeyValuePair <TKey, TValue>(rDict.FirstKey(), rDict.FirstValue()));
 }
예제 #2
0
파일: Dict.cs 프로젝트: huang8603543/GuoKe
 public static void RemoveFirst <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     rDict.Collection.Remove(rDict.FirstKey());
 }