a9c6292903
Underpinnings to make calling of Extension methods /Linq easier from PowerShell. Enables the following that previously had to be done via reflection. class M { [int] Twice([int] $value) { return 2 * $value } [int] DoubleSum([int[]] $values) { return [Linq.Enumerable]::Sum($values, [M]::Twice) } } Each PSMethod is created as with a unique type for the combinations of method signatures in the MethodInfos it represents. PSMethod<T> where T is a MethodGroup<>, potentially recursive in the last template argument. This way, we can determine by just looking at the type of a PSMethod if there exists a conversion from the PSMethod to a delegate. |
||
---|---|---|
.. | ||
Classes | ||
Interop/DotNet | ||
Operators | ||
Parser | ||
Scripting | ||
CompletionTestSupport.psm1 |