554 {
555 get
556 {
558 {
560 }
561 return null;
562 }
563 set
564 {
566 {
567 throw new ArgumentNullException("key");
568 }
569 if (
value ==
null &&
default(TValue) !=
null)
570 {
571 throw new ArgumentNullException("value");
572 }
573 try
574 {
575 TKey key2 = (TKey)
key;
576 try
577 {
578 this[key2] = (TValue)
value;
579 }
580 catch (InvalidCastException)
581 {
583 }
584 }
585 catch (InvalidCastException)
586 {
588 }
589 }
590 }
static bool IsCompatibleKey(object key)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static string Arg_WrongType
static string Format(string resourceFormat, object p1)