How can an object not be compared to null?

前端 未结 5 553
一整个雨季
一整个雨季 2020-12-06 09:07

I have an \'optional\' parameter on a method that is a KeyValuePair. I wanted an overload that passes null to the core method for this parameter, but in the core method, wh

5条回答
  •  囚心锁ツ
    2020-12-06 09:43

    You can actually use KeyValuePair.IsNull() to determine if the KeyValuePair has been set.

提交回复
热议问题