Exemple #1
0
        public CSharpDisableWarningScope(CSharpCodeWriter writer, int warningNumber)
        {
            _writer        = writer;
            _warningNumber = warningNumber;

            _writer.WritePragma("warning disable " + _warningNumber);
        }
        public CSharpDisableWarningScope(CSharpCodeWriter writer, int warningNumber)
        {
            _writer = writer;
            _warningNumber = warningNumber;

            _writer.WritePragma("warning disable " + _warningNumber);
        }
Exemple #3
0
 public void Dispose()
 {
     _writer.WritePragma("warning restore " + _warningNumber);
 }