Beispiel #1
0
        public static IEnumerable<NodeInfo> GetNodeInfoWithValues(PSObject func, object arguments = null, DataNameToInputMap map = null)
        {
            Function f = ToFunction(func);
            FunctionGetNodeInfo w;

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

            return w.GetNodeInfo();
        }
Beispiel #2
0
 public static IEnumerable<NodeInfo> GetNodeInfo(PSObject func)
 {
     Function f = ToFunction(func);
     var w = new FunctionGetNodeInfo(f, false);
     return w.GetNodeInfo();
 }