public PerformanceCheckBlock(string text, PerformanceReport report) { if (string.IsNullOrWhiteSpace(text)) throw new ArgumentException("Invalid 'text' argument"); if (report == null) throw new ArgumentNullException("report"); this.report = report; this.report.BeginMeasure(text); }
public PerformanceCheckBlock([NotNull] string text, [NotNull] PerformanceReport report) { if (string.IsNullOrWhiteSpace(text)) throw new ArgumentException("Invalid 'text' argument"); if (report == null) throw new ArgumentNullException(nameof(report)); this.report = report; this.report.BeginMeasure(text); }
public PerformanceCheckBlock(string text, PerformanceReport report) { if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentException("Invalid 'text' argument"); } if (report == null) { throw new ArgumentNullException("report"); } this.report = report; this.report.BeginMeasure(text); }