System.Threading.ThreadLocal<T>.ToString Method

Creates and returns a string representation of this instance for the current thread.

Syntax

public override string ToString ()

Returns

The result of calling object.ToString on the ThreadLocal`1.Value.

Remarks

Calling this method forces initialization for the current thread, as is the case with accessing ThreadLocal`1.Value directly.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0