I want to lock a static method in C# , an alternate to synchronization in java .
Following is the method
public synchronized static void UpdateDialListFile(String filePath, int lineno,
String lineToBeInserted)
Now i am implementing this function in C# , How the alternative to synchronized will work in C#
The above method is being called from within a thread as
new DialList(oDialInfo.FileName,oDialInfo.AppId,oDialInfo.AppCode,
pausetime,oDialInfo, PropVal).start();