Пример #1
0
 internal void ThrowIfSourceDisposed()
 {
     if (this.m_source != null && this.m_source.IsDisposed)
     {
         CancellationToken.ThrowObjectDisposedException();
     }
 }
Пример #2
0
 internal void ThrowIfSourceDisposed()
 {
     if (this.m_source == null || !this.m_source.IsDisposed)
     {
         return;
     }
     CancellationToken.ThrowObjectDisposedException();
 }