C# Class NStub.Gui.Util.ThreadingExtensions

Extension methods for control thread handling.
Show file Open project: Jedzia/NStub

Public Methods

Method Description
InvokeIfRequired ( this control, System.Action methodcall ) : void

Invokes a method on a control if required. With null and dispose check.

Simple helper extension method to marshal to correct thread if its required.

This also checks the control for null and disposed.
IvReq ( this control, System.Action methodcall ) : void

Invokes a method on a control if required. With no null and dispose check.

Simple helper extension method to marshal to correct thread if its required.

Method Details

InvokeIfRequired() public static method

Invokes a method on a control if required. With null and dispose check.

Simple helper extension method to marshal to correct thread if its required.

This also checks the control for null and disposed.
public static InvokeIfRequired ( this control, System.Action methodcall ) : void
control this The source control.
methodcall System.Action The method to call.
return void

IvReq() public static method

Invokes a method on a control if required. With no null and dispose check.

Simple helper extension method to marshal to correct thread if its required.

public static IvReq ( this control, System.Action methodcall ) : void
control this The source control.
methodcall System.Action The method to call.
return void