protected CommonDisposable(ISetOnceValue <bool> setOnceValue) { if (setOnceValue.IsSet) { throw new ArgumentException(nameof(setOnceValue), $"Can't construct {this.GetType()} because {nameof(setOnceValue)} is already set"); } _isDisposed = setOnceValue; }
public CommonDisposableTest(ISetOnceValue <bool> setOnceValue) : base(setOnceValue) { }