'typename'이 nullable 형식이므로 'typename' 형식의 'Is' 피연산자는 'Nothing'하고만 비교할 수 있습니다.

nullable로 선언된 변수가 Nothing 연산자를 사용하여 Is 이외의 식과 비교되었습니다.

오류 ID: BC32127

이 오류를 해결하려면

  1. Is 연산자를 사용하여 nullable 값 형식을 Nothing이 아닌 다른 식과 비교하려면 다음 예제에서처럼, nullable 값 형식에서 GetType 메서드를 호출하고 결과를 식을 비교합니다.
Dim number? As Integer = 5  

If number IsNot Nothing Then  
  If number.GetType() Is Type.GetType("System.Int32") Then

  End If  
End If  

참고 항목