PowerShell/test/powershell/Language
Staffan Gustafsson a9c6292903 Enable conversions from PSMethod to Delegate (#5287)
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.
2017-12-01 18:40:35 -08:00
..
Classes Always run test with crossgen'ed assemblies in CI (#5315) 2017-11-02 18:03:34 -07:00
Interop/DotNet Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Operators Fix line endings with LF (#5288) 2017-10-31 16:31:41 -07:00
Parser Enable conversions from PSMethod to Delegate (#5287) 2017-12-01 18:40:35 -08:00
Scripting Change $OutputEncoding to be utf8 without BOM rather than ASCII (#5369) 2017-11-07 14:49:14 -08:00
CompletionTestSupport.psm1 Autocorrected CRLF to LF (#4943) 2017-09-29 16:28:15 -07:00