Skip to content

Commit

Permalink
Add missing compiler directives for framework specific helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Nov 2, 2021
1 parent eab4b9e commit 639530f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ public readonly ref readonly T Current
}
}

#if NETSTANDARD2_1_OR_GREATER
/// <summary>
/// Throws an <see cref="ArgumentOutOfRangeException"/> when the "length" parameter is invalid.
/// </summary>
Expand All @@ -456,6 +457,7 @@ private static void ThrowArgumentOutOfRangeExceptionForStep()
{
throw new ArgumentOutOfRangeException("step");
}
#endif

/// <summary>
/// Throws an <see cref="ArgumentException"/> when the target span is too short.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ public readonly ref T Current
}
}

#if NETSTANDARD2_1_OR_GREATER
/// <summary>
/// Throws an <see cref="ArgumentOutOfRangeException"/> when the "length" parameter is invalid.
/// </summary>
Expand All @@ -544,6 +545,7 @@ private static void ThrowArgumentOutOfRangeExceptionForStep()
{
throw new ArgumentOutOfRangeException("step");
}
#endif

/// <summary>
/// Throws an <see cref="ArgumentException"/> when the target span is too short.
Expand Down

0 comments on commit 639530f

Please sign in to comment.