C# Class BitSharper.Threading.Runnable

Class to convert Action to IRunnable.
Inheritance: IRunnable
Show file Open project: TangibleCryptography/BitSharper Class Usage Examples

Public Methods

Method Description
Equals ( Runnable other ) : bool

Determines whether the specified other instance is equal to the current Runnable.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current Runnable.

GetHashCode ( ) : int

Returns the has code of the inner action.

Run ( ) : void

The entry point. Invokes the delegate passed to the constructor Runnable(Action).

Runnable ( System.Action action ) : System

Construct a new instance of Runnable which calls action delegate with its Run method is invoked.

Method Details

Equals() public method

Determines whether the specified other instance is equal to the current Runnable.
public Equals ( Runnable other ) : bool
other Runnable /// The other to compare with the current instance. ///
return bool

Equals() public method

Determines whether the specified object is equal to the current Runnable.
public Equals ( object obj ) : bool
obj object /// The to compare with the current instance. ///
return bool

GetHashCode() public method

Returns the has code of the inner action.
public GetHashCode ( ) : int
return int

Run() public method

The entry point. Invokes the delegate passed to the constructor Runnable(Action).
public Run ( ) : void
return void

Runnable() public method

Construct a new instance of Runnable which calls action delegate with its Run method is invoked.
public Runnable ( System.Action action ) : System
action System.Action /// The delegate to be called when is invoked. ///
return System