Timeline for C# 8 non-nullable references and the Try pattern
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 7, 2024 at 16:22 | comment | added | Heinzi | If you want to stay consistent with the terminology used by the .NET base class library, an ...OrDefault suffix is generally used rather than a Try... prefix for this pattern. | |
| Dec 14, 2020 at 1:11 | comment | added | Sedat Kapanoglu | Tuple example still begs T? in order to work with success == false case correctly. | |
| May 16, 2019 at 15:03 | comment | added | David Arno | @OlivierJacot-Descombes it May look easier ... but it won’t work. The car pattern always matches, so x is var y will always be true, whether x is null or not. | |
| May 16, 2019 at 14:55 | comment | added | Olivier Jacot-Descombes | TryParse(someString) is var myClass looks easier to me. | |
| Feb 26, 2019 at 9:42 | comment | added | Sebastian Redl | TryParse(someString) is {} myClass - This syntax will take some getting used to, but I like the idea. | |
| Feb 26, 2019 at 9:39 | vote | accept | Sebastian Redl | ||
| Feb 25, 2019 at 17:05 | history | edited | David Arno | CC BY-SA 4.0 | added 1149 characters in body |
| Feb 25, 2019 at 15:03 | history | answered | David Arno | CC BY-SA 4.0 |