x) Move the reason down with the other optional params

This commit is contained in:
Marc Hernandez 2024-03-26 22:03:37 -07:00
parent e9ba34f68e
commit d90eaf5954

View File

@ -14,7 +14,8 @@ using System.Runtime.CompilerServices;
static public class iu
{
//This can handle both Timed and Recorded
static public T Process<T>( ref T obj, Func<T, T> fn, string reason = "",
static public T Process<T>( ref T obj, Func<T, T> fn,
string reason = "",
[CallerMemberName] string memberName = "",
[CallerFilePath] string filePath = "",
[CallerLineNumber] int lineNumber = 0,
@ -26,7 +27,8 @@ static public class iu
return obj;
}
static public T LightProcess<T>( ref T obj, Func<T, T> fn, string reason = "",
static public T LightProcess<T>( ref T obj, Func<T, T> fn,
string reason = "",
[CallerMemberName] string memberName = "",
[CallerFilePath] string filePath = "",
[CallerLineNumber] int lineNumber = 0,