What is the purpose of a question mark after a type (for example: int? myVariable)?
Typically the main use of the question mark is for the conditional, x ? "yes" : "no". But I have seen another use for it but can't find an explanation of this use of the ? operator, for example. ...
stackoverflow.com
It means that the value type in question is a nullable type
'프로그래밍 > CSharp' 카테고리의 다른 글
What is the purpose of a question mark after a type (for example: int? myVariable)? (0) | 2020.12.09 |
---|
댓글0