Пример #1
0
 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");
     }
 }
Пример #2
0
 public virtual bool Unpipe(IReadable from)
 {
     lock (Sync) return(from.PipedTo == this ? from.Unpipe() : false);
 }