Skip to content

Commit

Permalink
feat: multiple func combine
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Oct 26, 2022
1 parent ca5e7ce commit a2ddfe7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Osmi/Utils/Func/Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ namespace Osmi.Utils;
public static partial class FuncUtil {
public static T Combine<T>(T a, T b) where T : Delegate =>
(T) Delegate.Combine(a, b);

public static T Combine<T>(params T[] delegates) where T : Delegate =>
(T) Delegate.Combine(delegates);
}

0 comments on commit a2ddfe7

Please sign in to comment.