I have an object of the type IEnumerable> keyValueList, I am using
IEnumerable> keyValueList
var getResult= keyValueList.SingleOrDefault()
To avoid the boxing of KeyValuePair.Equals(object) you can use a ValueTuple.
KeyValuePair.Equals(object)
ValueTuple
if ((getResult.Key, getResult.Value) == default)