Synchronized() public static méthode

public static Synchronized ( TextWriter writer ) : TextWriter
writer TextWriter
Résultat TextWriter
Exemple #1
0
 /// <summary>Creates a thread-safe wrapper around the specified TextWriter.</summary>
 /// <returns>A thread-safe wrapper.</returns>
 /// <param name="writer">The TextWriter to synchronize. </param>
 /// <exception cref="T:System.ArgumentNullException">
 ///   <paramref name="writer" /> is null. </exception>
 /// <filterpriority>2</filterpriority>
 public static TextWriter Synchronized(TextWriter writer)
 {
     return(TextWriter.Synchronized(writer, false));
 }