System.Windows.Automation.CacheRequest.Pop C# (CSharp) Method

Pop() public method

public Pop ( ) : void
return void
        public void Pop()
        {
            if (((_cacheStack == null) || (_cacheStack.Count == 0)) || (_cacheStack.Peek() != this))
            {
                throw new InvalidOperationException("Only the top cache request can be popped");
            }
            _cacheStack.Pop();
            lock (this._lock)
            {
                this._cRef--;
            }
        }

Usage Example

コード例 #1
0
ファイル: CacheRequest.cs プロジェクト: ABEMBARKA/monoUI
 public void Dispose()
 {
     if (request.disposables.Count != 0)
     {
         //request.disposables.Peek () == this) {
         request.disposables.Remove(this);
         request.Pop();
     }
 }
All Usage Examples Of System.Windows.Automation.CacheRequest::Pop