Ad
  • Custom User Avatar

    A c# string is nullable per default, unless you explicitly enable the nulllable check in the compiler, which was introduced in .NET 6+.
    And even then you'll only get a warning during compilation time. If you ignore it, the program WILL crash when the string is null during runtime.

  • Custom User Avatar

    Yea, but we now know, because the input is string and not string? that the input isn't null ;)