add missing Do extension
This commit is contained in:
parent
abcec0ae10
commit
74b3af344a
|
@ -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 _) {}
|
||||
|
|
Loading…
Reference in New Issue