示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DiagnosticsArea"/> class.
        /// </summary>
        /// <param name="name">The name of the diagnostic area.</param>
        /// <param name="diagnosticsCategories">A collection of <see cref="DiagnosticsCategory"/> that will be part of the area.</param>
        public DiagnosticsArea(string name, DiagnosticsCategoryCollection diagnosticsCategories)
        {
            this.Name = name;

            if (diagnosticsCategories == null)
            {
                this.diagnosticsCategories = new DiagnosticsCategoryCollection();
            }
            else
            {
                this.diagnosticsCategories = new DiagnosticsCategoryCollection(diagnosticsCategories);
            }
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticsArea"/> class.
 /// </summary>
 public DiagnosticsArea()
 {
     this.diagnosticsCategories = new DiagnosticsCategoryCollection();
 }