Return void from `Control.*Invoke` extensions
This commit is contained in:
parent
299459c2ef
commit
34ec13635b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue