コード例 #1
0
 public static KeyValuePair <TKey, TValue> First <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     if (rDict.Count == 0)
     {
         return(default(KeyValuePair <TKey, TValue>));
     }
     return(new KeyValuePair <TKey, TValue>(rDict.FirstKey(), rDict.FirstValue()));
 }
コード例 #2
0
ファイル: Dict.cs プロジェクト: winddyhe/Unity-Weld-ILRuntime
 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()));
 }