From f328099fd73271c3b374fd50d2ad0e971f99127b Mon Sep 17 00:00:00 2001 From: Muhammad Rehan Saeed Date: Thu, 19 May 2022 17:56:49 +0100 Subject: [PATCH] Update comments --- .../Destructurers/ExceptionDestructurer.cs | 5 +---- .../Destructurers/IExceptionDestructurer.cs | 2 +- .../Destructurers/ReflectionBasedDestructurer.cs | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/Serilog.Exceptions/Destructurers/ExceptionDestructurer.cs b/Source/Serilog.Exceptions/Destructurers/ExceptionDestructurer.cs index f9dbd737..07ff6081 100644 --- a/Source/Serilog.Exceptions/Destructurers/ExceptionDestructurer.cs +++ b/Source/Serilog.Exceptions/Destructurers/ExceptionDestructurer.cs @@ -10,10 +10,7 @@ namespace Serilog.Exceptions.Destructurers; /// public class ExceptionDestructurer : IExceptionDestructurer { - /// - /// Gets a collection of exceptions types from standard library that do not have any custom property, - /// so they can be destructured using generic exception destructurer. - /// + /// #pragma warning disable CA1819 // Properties should not return arrays public virtual Type[] TargetTypes #pragma warning restore CA1819 // Properties should not return arrays diff --git a/Source/Serilog.Exceptions/Destructurers/IExceptionDestructurer.cs b/Source/Serilog.Exceptions/Destructurers/IExceptionDestructurer.cs index e672a8ad..a1a6d845 100644 --- a/Source/Serilog.Exceptions/Destructurers/IExceptionDestructurer.cs +++ b/Source/Serilog.Exceptions/Destructurers/IExceptionDestructurer.cs @@ -11,7 +11,7 @@ namespace Serilog.Exceptions.Destructurers; public interface IExceptionDestructurer { /// - /// Gets a collection of types of exception that the destructurer can handle. + /// Gets a collection of exception types that the destructurer can handle. /// #pragma warning disable CA1819 // Properties should not return arrays Type[] TargetTypes { get; } diff --git a/Source/Serilog.Exceptions/Destructurers/ReflectionBasedDestructurer.cs b/Source/Serilog.Exceptions/Destructurers/ReflectionBasedDestructurer.cs index ca19e9f0..43cb65da 100644 --- a/Source/Serilog.Exceptions/Destructurers/ReflectionBasedDestructurer.cs +++ b/Source/Serilog.Exceptions/Destructurers/ReflectionBasedDestructurer.cs @@ -29,8 +29,8 @@ public class ReflectionBasedDestructurer : IExceptionDestructurer /// /// Initializes a new instance of the class. /// - /// Maximum depth to which the destructurer will go when destructuring exception - /// object graph. + /// Maximum depth to which the destructurer will go when destructuring an + /// exception object graph. public ReflectionBasedDestructurer(int destructuringDepth) { if (destructuringDepth <= 0)