wasSharpNET – Diff between revs 22 and 27
?pathlinks?
Rev 22 | Rev 27 | |||
---|---|---|---|---|
Line 18... | Line 18... | |||
18 | { |
18 | { |
|
19 | #region Constructors |
19 | #region Constructors |
|
Line 20... | Line 20... | |||
20 | |
20 | |
|
21 | public SafeFileStream(string path, FileMode mode, FileAccess access, FileShare share, uint milliscondsTimeout) |
21 | public SafeFileStream(string path, FileMode mode, FileAccess access, FileShare share, uint milliscondsTimeout) |
|
22 | { |
22 | { |
|
23 | m_mutex = new Mutex(false, string.Format("Global\\{0}", path.Replace('\\', '/'))); |
23 | m_mutex = new Mutex(false, $"Global\\{path.Replace('\\', '/')}"); |
|
24 | m_path = path; |
24 | m_path = path; |
|
25 | m_fileMode = mode; |
25 | m_fileMode = mode; |
|
26 | m_fileAccess = access; |
26 | m_fileAccess = access; |
|
27 | m_fileShare = share; |
27 | m_fileShare = share; |