The following function of the Systems.Collections.Generic.Dictionary class has a return statement after throwing an exception, does anyone have an idea why?
public TValue this[TKey key] { get { int i = FindEntry(key); if (i >= 0) return entries[i].value; ThrowHelper.ThrowKeyNotFoundException(); **return default(TValue);** } set { Insert(key, value, false); } }
dictionary c #
Faisal mansoor
source share