11/* ------------------------------
2- Light.GuardClauses 6.0 .0
2+ Light.GuardClauses 6.1 .0
33 ------------------------------
44
55License information for Light.GuardClauses
@@ -2761,16 +2761,16 @@ public Range(T from, T to, bool isFromInclusive = true, bool isToInclusive = tru
27612761 /// Use this method to create a range in a fluent style using method chaining.
27622762 /// Defines the lower boundary as an inclusive value.
27632763 /// </summary>
2764- /// <param name = "value">The value that indicates the inclusive lower boundary of the resulting Range .</param>
2765- /// <returns>A value you can use to fluently define the upper boundary of a new Range .</returns>
2764+ /// <param name = "value">The value that indicates the inclusive lower boundary of the resulting range .</param>
2765+ /// <returns>A value you can use to fluently define the upper boundary of a new range .</returns>
27662766 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
27672767 public static RangeFromInfo FromInclusive ( T value ) => new RangeFromInfo ( value , true ) ;
27682768 /// <summary>
27692769 /// Use this method to create a range in a fluent style using method chaining.
27702770 /// Defines the lower boundary as an exclusive value.
27712771 /// </summary>
2772- /// <param name = "value">The value that indicates the exclusive lower boundary of the resulting Range .</param>
2773- /// <returns>A value you can use to fluently define the upper boundary of a new Range .</returns>
2772+ /// <param name = "value">The value that indicates the exclusive lower boundary of the resulting range .</param>
2773+ /// <returns>A value you can use to fluently define the upper boundary of a new range .</returns>
27742774 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
27752775 public static RangeFromInfo FromExclusive ( T value ) => new RangeFromInfo ( value , false ) ;
27762776 /// <summary>
@@ -2793,21 +2793,21 @@ public RangeFromInfo(T from, bool isFromInclusive)
27932793 }
27942794
27952795 /// <summary>
2796- /// Use this method to create a Range in a fluent style using method chaining.
2796+ /// Use this method to create a range in a fluent style using method chaining.
27972797 /// Defines the upper boundary as an exclusive value.
27982798 /// </summary>
2799- /// <param name = "value">The value that indicates the exclusive upper boundary of the resulting Range .</param>
2799+ /// <param name = "value">The value that indicates the exclusive upper boundary of the resulting range .</param>
28002800 /// <returns>A new range with the specified upper and lower boundaries.</returns>
28012801 /// <exception cref = "ArgumentOutOfRangeException">
28022802 /// Thrown when <paramref name = "value"/> is less than the lower boundary value.
28032803 /// </exception>
28042804 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
28052805 public Range < T > ToExclusive ( T value ) => new Range < T > ( _from , value , _isFromInclusive , false ) ;
28062806 /// <summary>
2807- /// Use this method to create a Range in a fluent style using method chaining.
2807+ /// Use this method to create a range in a fluent style using method chaining.
28082808 /// Defines the upper boundary as an inclusive value.
28092809 /// </summary>
2810- /// <param name = "value">The value that indicates the inclusive upper boundary of the resulting Range .</param>
2810+ /// <param name = "value">The value that indicates the inclusive upper boundary of the resulting range .</param>
28112811 /// <returns>A new range with the specified upper and lower boundaries.</returns>
28122812 /// <exception cref = "ArgumentOutOfRangeException">
28132813 /// Thrown when <paramref name = "value"/> is less than the lower boundary value.
@@ -2849,6 +2849,31 @@ public override bool Equals(object other)
28492849 public static bool operator != ( Range < T > first , Range < T > second ) => first . Equals ( second ) == false ;
28502850 }
28512851
2852+ /// <summary>
2853+ /// Provides methods to simplify the creation of <see cref = "Range{T}"/> instances.
2854+ /// </summary>
2855+ internal static class Range
2856+ {
2857+ /// <summary>
2858+ /// Use this method to create a range in a fluent style using method chaining.
2859+ /// Defines the lower boundary as an inclusive value.
2860+ /// </summary>
2861+ /// <param name = "value">The value that indicates the inclusive lower boundary of the resulting range.</param>
2862+ /// <returns>A value you can use to fluently define the upper boundary of a new range.</returns>
2863+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2864+ public static Range < T > . RangeFromInfo FromInclusive < T > ( T value )
2865+ where T : IComparable < T > => new Range < T > . RangeFromInfo ( value , true ) ;
2866+ /// <summary>
2867+ /// Use this method to create a range in a fluent style using method chaining.
2868+ /// Defines the lower boundary as an exclusive value.
2869+ /// </summary>
2870+ /// <param name = "value">The value that indicates the exclusive lower boundary of the resulting range.</param>
2871+ /// <returns>A value you can use to fluently define the upper boundary of a new range.</returns>
2872+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2873+ public static Range < T > . RangeFromInfo FromExclusive < T > ( T value )
2874+ where T : IComparable < T > => new Range < T > . RangeFromInfo ( value , false ) ;
2875+ }
2876+
28522877 /// <summary>
28532878 /// Specifies the culture, case , and sort rules when comparing strings.
28542879 /// </summary>
0 commit comments