Csharp/CSharp Tutorial/Preprocessing Directives/warning
Версия от 15:31, 26 мая 2010; (обсуждение)
Unused Warning With Warning Suppressed
using System;
using System.Collections.Generic;
using System.Text;
using System.ruponentModel;
class UnusedWarningWithWarningSuppressed
{
#pragma warning disable 0169
int x;
#pragma warning restore 0169
}
warning preprocessor
The #warning directive produces a warning.
The general form of the #warning directive is
#warning warning-message