コード例 #1
0
ファイル: ScopedItem.cs プロジェクト: BernieWhite/PSDocs
        internal void RequireScope(RunspaceScope scope)
        {
            if (GetContext().IsScope(scope))
            {
                return;
            }

            throw new RuntimeException();
        }
コード例 #2
0
 internal void PushScope(RunspaceScope scope)
 {
     _Scope.Push(scope);
 }
コード例 #3
0
        internal bool IsScope(RunspaceScope scope)
        {
            var current = _Scope.Peek();

            return((current & scope) == current);
        }