예제 #1
0
        public static string AsTreeWithValues(PSObject func, object arguments = null, DataNameToInputMap map = null, bool showUid = true)
        {
            Function f = ToFunction(func);
            FunctionAsTree w;

            if (arguments == null)
                w = new FunctionAsTree(f, true, null, null, null);
            else if (arguments is Hashtable)
                w = new FunctionAsTree(f, true, arguments as Hashtable, null, null, showUid);
            else
                w = new FunctionAsTree(f, true, null, arguments as Minibatch, map, showUid);

            return w.Result;
        }
예제 #2
0
 public static string AsTree(PSObject func)
 {
     Function f = ToFunction(func);
     FunctionAsTree w = new FunctionAsTree(f, false);
     return w.Result;
 }