Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Nullable type inference is not supported in this context

Value types and structures can be declared nullable.

Dim a? As Integer
Dim b As Integer?

However, you cannot use the nullable declaration in combination with type inference. The following examples cause this error.

' Not valid.
' Dim c? = 10
' Dim d? = a

Error ID: BC36629

To correct this error

  • Use an As clause to declare the variable as nullable.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.