KeyValuePair 메서드에 '선택적'매개 변수가 있습니다. 나는이 매개 변수에 대한 핵심 메서드에 null이 전달 과부하를 원하지만, KeyValuePair가 null의 경우 내가 확인하고자하는 핵심 방법에서, 나는 다음과 같은 오류 얻을 :개체를 null과 비교할 수없는 방법은 무엇입니까?
Operator '!=' cannot be applied to operands of type System.Collections.Generic.KeyValuePair<string,object>' and '<null>.
를 어떻게 할 수 없다 객체가 null인지 검사 할 수 있습니까?
이 오류를 보여주는 코드 샘플을 제공 할 수 있습니까? –
참조 : http://stackoverflow.com/questions/1335419/how-can-i-make-sure-that-firstordefaultkeyvaluepair-has-returned-a-value –