I would like to add MapWinGis to my C# application ,but I don't know the following:
Whats the difference between (examples 1 and 2) and the meaning of the [question mark] in the first sample?
Shapefile.Categories.Item[n]?.MinValue
VS
Shapefile.Categories.Item[n].MinValue
The
?symbol is the null-conditional operator. A null-conditional operator applies member access, ?., or element access, ?[], operation to its operand only if that operand evaluates to non-null; otherwise, it returns null.aevaluates tonull, the result ofa?.xora?[x]isnull.aevaluates to non-null, the result ofa?.xora?[x]is the same as the result ofa.xora[x], respectively.Reference: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators#null-conditional-operators--and-