virtual public void Unpipe(IReadable from) { if (from.PipedTo == this) { from.Unpipe(); } else { throw new InvalidOperationException("The specified readable is not piped to this writable"); } }
public virtual bool Unpipe(IReadable from) { lock (Sync) return(from.PipedTo == this ? from.Unpipe() : false); }