This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct SemaphoreLock : IDisposable | |
{ | |
private readonly SemaphoreSlim sem; | |
private SemaphoreLock(SemaphoreSlim sem) | |
{ | |
this.sem = sem; | |
} | |
public void Dispose() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ConsoleApp1 | |
{ | |
interface IBar | |
{ | |
void Foo(); | |
} | |
class Program : IBar | |
{ |