You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns the element of an array, pretending that the array wraps around or is circular.
272
259
/// </summary>
@@ -768,6 +755,19 @@ public static IEnumerable<T> Slice<T>(this IEnumerable<T> source, int start, int
768
755
/// <returns><paramref name="t"/></returns>
769
756
publicstaticTNullCheck<T>(thisTt,stringmessage="While asserting for null, the variable ended up null.",boolisIterator=false)=>tis not null?t:throw(isIterator?newNullIteratorException(message):thrownewNullReferenceException(message));
770
757
758
+
/// <summary>
759
+
/// Invokes a method of <typeparamref name="TInput"/> to <typeparamref name="TOutput"/> and then returns the argument provided.
760
+
/// </summary>
761
+
/// <remarks>
762
+
/// This can be used to intercept current variables or calculations by for example, printing the value as it is being passed as an argument.
763
+
/// </remarks>
764
+
/// <typeparam name="TInput">The type of <paramref name="item"/>.</typeparam>
765
+
/// <typeparam name="TOutput">The type to return.</typeparam>
766
+
/// <param name="item">The item to use as reference and modify.</param>
767
+
/// <param name="func">The function to apply <paramref name="item"/> to.</param>
768
+
/// <returns>The item <paramref name="item"/> after <paramref name="func"/>.</returns>
0 commit comments