Mono Class Library: System.IO.TextReader Overview | Members

System.IO.TextReader.Synchronized Method

Creates a thread-safe wrapper around the specified System.IO.TextReader instance.

public static TextReader Synchronized (TextReader reader)

Parameters

reader
The System.IO.TextReader to synchronize.

Returns

A thread-safe System.IO.TextReader .

Exceptions

TypeReason
ArgumentNullExceptionThe reader parameter is null.

Remarks

This method returns a System.IO.TextReader instance that wraps around the specified System.IO.TextReader instance and restricts concurrent access to it by multiple threads.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0