Пример #1
0
        public DbgValueScriptConverter(string typeName, ScriptBlock script, bool captureContext)
        {
            if (String.IsNullOrEmpty(typeName))
            {
                throw new ArgumentException("You must supply a type name.", "typeName");
            }

            if (null == script)
            {
                throw new ArgumentNullException("script");
            }

            TypeName = typeName;
            Script   = script;
            if (captureContext)
            {
                Context = DbgProvider.CapturePsContext();
            }
            else
            {
                Context = new PsContext();
            }
        } // end constructor