摘要:直接上代码了,以后碰到类似的就直接用了public static TKey FindKeyByValue<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TValue value) { if (dictionary == null) throw new ArgumentNullException("dictionary"); foreach (KeyValuePair<TKey, TValue> pair in dictionary) ...
阅读全文
posted @ 2011-12-21 09:58
浙公网安备 33010602011771号