The default for KeyValuePair


if (getResult.Equals(new KeyValuePair<T,U>()))

or this:

if (getResult.Equals(default(KeyValuePair<T,U>)))
原文地址:https://www.cnblogs.com/zwei1121/p/5126541.html