コード例 #1
0
        public CSharpDisableWarningScope(CSharpCodeWriter writer, int warningNumber)
        {
            _writer        = writer;
            _warningNumber = warningNumber;

            _writer.WritePragma("warning disable " + _warningNumber);
        }
コード例 #2
0
        public CSharpDisableWarningScope(CSharpCodeWriter writer, int warningNumber)
        {
            _writer = writer;
            _warningNumber = warningNumber;

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