I can normally use the First() method in a Dictionary type variable like this,
Dictionary<string,string> dic = new Dictionary<string,string>();
dic.Remove(dic.First(kvp => kvp.Value == some_value).Key);
However, when I tried to inherit a class from Dictionary like below it's giving me an error.
class Dic : Dictionary<string, string>
{
   public void DoSomething()
   {
      Remove(First(kvp => kvp.Value == some_value).Key);
   }
}
 This is the error I'm getting.
 This is the error I'm getting.
BTW, First() originates not from Dictionary
I have tried implementing IEnumerable but it did not help

 
     
    