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. [Edit]

public static TextReader Synchronized (TextReader reader)

Parameters

reader
The System.IO.TextReader to synchronize. [Edit]

Returns

A thread-safe System.IO.TextReader . [Edit]

Exceptions

TypeReason
ArgumentNullExceptionThe reader parameter is null. [Edit]

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. [Edit]

Requirements

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