This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Diagnostics.CodeAnalysis; | |
| namespace TestNullable | |
| { | |
| class Test | |
| { | |
| static bool TrySomething1(string s, [NotNullWhen(false)] out string? failReason) | |
| { | |
| // warning CS8762: Parameter 'failReason' must have a non-null value when exiting with 'false'. | |
| return s.Length % 2 == 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| /// <summary> | |
| /// String comparer that takes numbers into account. | |
| /// e.g. "Episode 9" will be considered less than "Episode 10", even though it would be greater based on strictly | |
| /// alphabetical order. | |
| /// </summary> | |
| public class NaturalSortStringComparer : IComparer<string> | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bin/ | |
| obj/ | |
| .vs/ | |
| .idea/ | |
| .vscode/ | |
| *.user | |
OlderNewer