tags:

views:

28

answers:

2

I was looking at some existing code and stumbled across a variable declaration I didn't understand.

public foo as Boolean?

What does the question mark signify?

+1  A: 

It means a nullable Boolean.

Boolean?, or any other value type (number or struct), is shorthand for Nullable(Of Boolean).

SLaks
A: 

aah, no sooner did I post the question that I realised that it may signify that it can be nullable.

I tested in code and that seems to be the case.

Mav