업데이트: 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