Readdy Write
c# ; nullable ; net8 ;

C# CS8632 the annotation for nullable reference types should only be used in code within a '#nullabel' annotations context

20.02.2023 (👁2773)

C# CS8632 the annotation for nullable reference types should only be used in code within a '#nullabel' annotations context

 

Wenn man ein neues WinApp Windows Application erstellt mit string? Variablen.

Also ein String der von der Datenbank kommt und NULL sein kann.

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Lösung:

In die Solution->Project->Properties

Dann scroll down bis Build / General

Und dort die Nullabe: Specifies the project-wide C# nullable context. Only available for projects that use C# 8.0 or later

 

è Auf enable setzen

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung


0,00 €