Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/NetEvolve.Arguments/Argument_ThrowIfGreaterThan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ public static partial class Argument
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[StackTraceHidden]
#if NET8_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfGreaterThan<T>(
T value,
T other,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ public static partial class Argument
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[StackTraceHidden]
#if NET8_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfGreaterThanOrEqual<T>(
T value,
T other,
Expand Down
6 changes: 5 additions & 1 deletion src/NetEvolve.Arguments/Argument_ThrowIfLessThan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ public static partial class Argument
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[StackTraceHidden]
#if NET8_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfLessThan<T>(
T value,
T other,
Expand Down
6 changes: 5 additions & 1 deletion src/NetEvolve.Arguments/Argument_ThrowIfLessThanOrEqual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ public static partial class Argument
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[StackTraceHidden]
#if NET8_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfLessThanOrEqual<T>(
T value,
T other,
Expand Down
6 changes: 5 additions & 1 deletion src/NetEvolve.Arguments/Argument_ThrowIfNull.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ public static partial class Argument
/// <param name="argument">The reference type argument to validate as non-null.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[StackTraceHidden]
#if NET6_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfNull(
[NotNull] object? argument,
[CallerArgumentExpression(nameof(argument))] string? paramName = null
Expand Down
4 changes: 4 additions & 0 deletions src/NetEvolve.Arguments/Argument_ThrowIfNullOrEmpty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ public static partial class Argument
/// <exception cref="ArgumentException"><paramref name="argument"/> is empty.</exception>
[DebuggerStepThrough]
[StackTraceHidden]
#if NET7_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfNullOrEmpty(
[NotNull] string? argument,
[CallerArgumentExpression(nameof(argument))] string? paramName = null
Expand Down
6 changes: 5 additions & 1 deletion src/NetEvolve.Arguments/Argument_ThrowIfNullOrWhiteSpace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ public static partial class Argument
/// <exception cref="ArgumentNullException"><paramref name="argument"/> is null.</exception>
/// <exception cref="ArgumentException"><paramref name="argument"/> is empty or consists only of white-space characters.</exception>
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[StackTraceHidden]
#if NET8_0_OR_GREATER
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#else
[MethodImpl(MethodImplOptions.NoInlining)]
#endif
public static void ThrowIfNullOrWhiteSpace(
[NotNull] string? argument,
[CallerArgumentExpression(nameof(argument))] string? paramName = null
Expand Down