'typename'이(가) nullable 형식이므로 'typename' 형식의 'IsNot' 피연산자는 'Nothing'과(와)만 비교할 수 있습니다.
업데이트: 2007년 11월
'IsNot' operand of type 'typename' can only be compared to 'Nothing', because 'typename' is a nullable type
nullable로 선언한 변수를 IsNot 연산자를 사용하여 Nothing 이외의 식과 비교했습니다.
오류 ID: BC32128
이 오류를 해결하려면
IsNot 연산자를 사용하여 nullable 형식을 Nothing 이외의 식과 비교하려면 다음 예제와 같이 nullable 형식에서 GetType 메서드를 호출한 후 그 결과를 식과 비교합니다.
Dim number? As Integer = 5 If number IsNot Nothing Then If number.GetType() IsNot Type.GetType("System.Int32") Then End If End If