Extension Method
public static class ControlExtensions
{
public static void Invoke(this Control Control, Action Action)
{
Control.Invoke(Action);
}
}
Usage
this.Invoke(() => Text = "Refreshed");
public static class ControlExtensions
{
public static void Invoke(this Control Control, Action Action)
{
Control.Invoke(Action);
}
}
this.Invoke(() => Text = "Refreshed");