[no] Posts
The 5 Different Meanings of the Question Mark in C#
5. august 2019 • [no] 1 min read
 
 In C# the question mark has 5 meanings as of C# 8.
- Ternary operators
(true ? "true": "false")2. Null conditional operator
items?.Count()3. Nullable types (this should be rebranded as nullable value types)
int?4. Null-coalescing operator
isnull ?? string.Empty5. Nullable reference types
string?Forfatter: Chuck Conway spesialiserer seg på programvareutvikling og Generativ AI. Koble til ham på sosiale medier: X (@chuckconway) eller besøk ham på YouTube.