Merge branch 'main' of https://git.innov.energy/Innovenergy/git_trunk
This commit is contained in:
commit
9cb29ef099
|
@ -31,7 +31,13 @@ public static class Utils
|
||||||
return (T) Convert.ChangeType(c, type);
|
return (T) Convert.ChangeType(c, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static T Do<T>(this T t, Action action)
|
||||||
|
{
|
||||||
|
action();
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[DebuggerStepThrough][MethodImpl(AggressiveInlining | AggressiveOptimization)]
|
[DebuggerStepThrough][MethodImpl(AggressiveInlining | AggressiveOptimization)]
|
||||||
public static void Nop<T>(T _) {}
|
public static void Nop<T>(T _) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue