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