Exemple #1
0
 internal Dictionary <string, FunctionInfo> GetAll()
 {
     /*
      * "Fun" fact: The GetAll() function of all *Intrinsics classes is perfect to be used
      * by the provider when "Get-ChildItem" is called for example. With PS2.0, alias and variable
      * providers return all elements that are useable and visible in the current scope.
      * But not the FunctionProvider. It returns even inaccessible functions, e.g. those that are private
      * in a parent scope. They cannot be called, but are returned. This behavior is just bad, therefore
      * I won't implement it. I will implement this the same way as for aliases and variables.
      */
     return(_scope.GetAll());
 }
Exemple #2
0
 public Dictionary <string, AliasInfo> GetAll()
 {
     return(_scope.GetAll());
 }