This commit is contained in:
Sina Blattmann 2023-03-21 13:46:38 +01:00
commit 9cb29ef099
1 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,13 @@ 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 _) {}