I have a project which is written in C++ which has functionality of file copy and folder creations. It uses the Mutex.Lock() and Mutex.unLock() methods in C++.
I need to replicate the same in C#.
Please suggest which is the best way to write the C++ methods mutext.Lock() and Mutex.unlock() in C#?