A strange ? syntax

Q

qualitychecker

Hello

Newbie in Parallel Extensions Framework to .NET, I tried the Sudoku
game.

Works fine. In the "PuzzleGrid.cs" file; I found a strange
declaration :

private Point? _selectedCell;

Point comes from System.Drawing.Point Struct from System.Point
namespace

It compiles and runs fine.

What is the meaning for the "?"

Thanks for your help
 
Q

qualitychecker

It's a C# shortcut for System.Nullable<Point>

Thanks for this quick answer. Where is this defined ? Not found in
Microsoft docs "C Sharp language specification V1.2 nor V3.0" ?
Is there other special notations like this ?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top