Ejemplo n.º 1
0
        /// <summary></summary>
        /// <param name="shell"></param>
        public static void SetShell(PpsShell shell)
        {
            if (currentShell != null)
            {
                throw new ArgumentException();
            }

            currentShell = shell;
        }         // proc SetShell
Ejemplo n.º 2
0
        }         // proc SetShell

        /// <summary>Returns the current shell.</summary>
        /// <param name="shell"></param>
        /// <returns></returns>
        public static bool TryGetShell(out PpsShell shell)
        => (shell = currentShell) != null;