add missing Do extension

This commit is contained in:
ig 2023-03-21 13:46:15 +01:00
parent abcec0ae10
commit 74b3af344a
1 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,12 @@ public static class Utils
return (T) Convert.ChangeType(c, type);
}
public static T Do<T>(this T t, Action action)
{
action();
return t;
}
[DebuggerStepThrough][MethodImpl(AggressiveInlining | AggressiveOptimization)]
public static void Nop<T>(T _) {}