Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }