C# Class BitSharper.Threading.Runnable

Class to convert Action to IRunnable.
Inheritance: IRunnable
Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat bool

Equals() public méthode

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. ///
Résultat bool

GetHashCode() public méthode

Returns the has code of the inner action.
public GetHashCode ( ) : int
Résultat int

Run() public méthode

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

Runnable() public méthode

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. ///
Résultat System