BclExtras.Threading.OperationContext.ThrowIfCanceled C# (CSharp) Method

ThrowIfCanceled() public method

public ThrowIfCanceled ( ) : void
return void
        public void ThrowIfCanceled()
        {
            if (m_cancelled)
            {
                throw new OperationCanceledException("Operation was cancelled");
            }
        }