 It works by marking a block of code as a critical section by mutual exclusion of access to a provided object.Like the statement, it works by the compiler generating a block in its place.private static StreamWriter _writer;

public void ConcurrentMethod()


Attributes are entities of data that are stored as metadata in the compiled assembly.