C# Class Utilities.Threading.ThreadExtensions

Extension methods around Thread
Mostra file Open project: mrvshah/Utilities

Public Methods

Method Description
TrySetName ( this thread, string name ) : bool

InvalidOperationException is thrown if an attempt is made to rename thread. This extension method tries to set the name of the thread and returns a success or failure.

Method Details

TrySetName() public static method

InvalidOperationException is thrown if an attempt is made to rename thread. This extension method tries to set the name of the thread and returns a success or failure.
public static TrySetName ( this thread, string name ) : bool
thread this The thread
name string The name of the thread
return bool