Return void from `Control.*Invoke` extensions

This commit is contained in:
YoshiRulz 2021-12-04 10:37:28 +10:00
parent 299459c2ef
commit 34ec13635b
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 8 deletions

View File

@ -29,16 +29,12 @@ namespace BizHawk.Client.EmuHawk
}
/// <summary>extension method to make <see cref="Control.Invoke(Delegate)"/> easier to use</summary>
public static object Invoke(this Control control, Action action)
{
return control.Invoke(action);
}
public static void Invoke(this Control control, Action action)
=> control.Invoke(action);
/// <summary>extension method to make <see cref="Control.BeginInvoke(Delegate)"/> easier to use</summary>
public static IAsyncResult BeginInvoke(this Control control, Action action)
{
return control.BeginInvoke(action);
}
public static void BeginInvoke(this Control control, Action action)
=> control.BeginInvoke(action);
public static ToolStripMenuItem ToColumnsMenu(this InputRoll inputRoll, Action changeCallback)
{