Variable declaration question mark

后端 未结 2 1601
南方客
南方客 2021-02-18 21:00

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

public foo as Boolean?

What does the quest

2条回答
  •  臣服心动
    2021-02-18 21:25

    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.

提交回复
热议问题