diff --git a/src/Humanizer/Bytes/ByteSize.cs b/src/Humanizer/Bytes/ByteSize.cs index f48ca66f1..e09d9783b 100644 --- a/src/Humanizer/Bytes/ByteSize.cs +++ b/src/Humanizer/Bytes/ByteSize.cs @@ -22,8 +22,6 @@ using System; -// ReSharper disable CSharpWarnings::CS1591 -#pragma warning disable 1591 namespace Humanizer.Bytes { /// @@ -386,5 +384,3 @@ public static ByteSize Parse(string s) } } } -#pragma warning restore 1591 -// ReSharper restore CSharpWarnings::CS1591 diff --git a/src/Humanizer/Configuration/Configurator.cs b/src/Humanizer/Configuration/Configurator.cs index 4d7bfc00e..b5d013de2 100644 --- a/src/Humanizer/Configuration/Configurator.cs +++ b/src/Humanizer/Configuration/Configurator.cs @@ -40,6 +40,9 @@ public static IFormatter Formatter } } + /// + /// The strategy to be used for DateTime.Humanize + /// public static IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get { return _dateTimeHumanizeStrategy; } diff --git a/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs index e52ea85d0..5aedd233b 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs @@ -3,12 +3,12 @@ namespace Humanizer.DateTimeHumanizeStrategy { /// - /// A strategy for converting a 'distance of time' into words. + /// Implement this interface to create a new strategy for DateTime.Humanize and hook it in the Configurator.DateTimeHumanizeStrategy /// public interface IDateTimeHumanizeStrategy { /// - /// Calculates the distance of time in words between two provided dates. + /// Calculates the distance of time in words between two provided dates used for DateTime.Humanize /// string Humanize(DateTime input, DateTime comparisonBase); } diff --git a/src/Humanizer/Localisation/TimeUnit.cs b/src/Humanizer/Localisation/TimeUnit.cs index 99086f992..86c4a56b4 100644 --- a/src/Humanizer/Localisation/TimeUnit.cs +++ b/src/Humanizer/Localisation/TimeUnit.cs @@ -1,6 +1,5 @@ namespace Humanizer.Localisation { -#pragma warning disable 1591 /// /// Units of time. /// @@ -15,5 +14,4 @@ public enum TimeUnit Month, Year } -#pragma warning restore 1591 } \ No newline at end of file