Coding Global Background
Coding Global

Why do i get an Error?

Archiviert 2 years ago
29 Nachrichten
1 Mitglieder
2 years ago
In Discord öffnen
O
oliwan9
GitHub

```cs string inputChoice = Console.ReadLine()?.ToLower(); if (string.IsNullOrWhiteSpace(inputChoice)) { Console.WriteLine("Invalid"); } if (inputChoice == null) { Console.WriteLine("Invalid"); } ``` Error is CS8600 "the null literal or a possible null value will be converted into a non nullable type" Sorry if its completly stupid, its my first C# Code. Please also feedback my code https://discord.com/channels/693908458986143824/1185995438944432189 🙂

Antworten (29)