ソースコード
using System.Collections.Generic; public static class DictionaryExtensions { public static bool ContainsKeyNullable<TKey, TValue>( this Dictionary<TKey, TValue> self, TKey key ) { if ( key == null ) { return false; } return self.ContainsKey( key ); } }