Compiler Warning (level 1) CS1030
#warning: 'text'
Displays the text of a warning defined with the #warning directive.
The following sample shows how to create a user-defined warning:
// CS1030.cs
class Sample
{
static void Main()
{
#warning Let's give a warning here
}
}
Compilation produces the following output:
example.cs(6,16): warning CS1030: #warning: 'Let's give a warning here'
Schafft mat eis op GitHub zesummen
D'Quell fir dësen Inhalt kann op GitHub fonnt ginn, wou Dir och Theeme schafen an iwwerpréiwen kënnt an Ufroen unhuele kënnt. Fir méi Informatiounen, gitt op eisen Auteur-Guide.
Feedback
https://aka.ms/ContentUserFeedback.
Geschwënn disponibel: Wärend dem Joer 2024 gi GitHub-Problemer geléist, well de Feedback-Mechanismus fir Inhalt duerch en neie Feedback-System ersat gëtt. Fir weider Informatiounen, gitt op:Ofginn a Feedback uweise fir