Ejemplo n.º 1
0
        DataObject AddObject(ShellEnvironmentNamespace ns)
        {
            var path = Nsp(ns);
            var name = path.Split(CommandLineSyntax.VariableNamePathSeparator).Last();
            var obj  = new DataObject(name);

            Vars.Set(path, obj);
            return(obj);
        }
Ejemplo n.º 2
0
 public bool HasObject(ShellEnvironmentNamespace ns) => Vars.GetObject(Nsp(ns), out _, false);