public AwaiterByWrapper(Semaphore semaphore) { this._semaphore = ArgumentValidator.ValidateNotNull(nameof(semaphore), semaphore); }
public SignallerByFile(String filePath) { this._filePath = ArgumentValidator.ValidateNotEmpty(nameof(filePath), filePath); this._stream = File.Open(filePath, FileMode.CreateNew, FileAccess.Write, FileShare.Read); }
internal UndoUnitEnumerable(UndoUnitBuffer <T> buffer, Boolean isUndo) { ArgumentValidator.ValidateNotNull("Buffer", buffer); this._buffer = buffer; this._isUndo = isUndo; }
internal UTF16EncodingInfo(UnicodeEncoding encoding) { this.Encoding = ArgumentValidator.ValidateNotNull(nameof(encoding), encoding); }
/// <inheritdoc /> public IEncodingInfo WriteASCIIByte(Byte[] array, ref Int32 idx, Byte asciiByte) { // UTF8 ASCII bytes are just normal bytes ArgumentValidator.ValidateNotNull(nameof(array), array)[idx++] = asciiByte; return(this); }
/// <inheritdoc /> public Byte ReadASCIIByte(Byte[] array, ref Int32 idx) { // UTF8 ASCII bytes are just normal bytes return(ArgumentValidator.ValidateNotNull(nameof(array), array)[idx++]); }