Dongbo Wang
720e842c86
Support calling method with ByRef-like type parameters ( #7721 )
...
Support calling methods with ByRef-like type parameters in PowerShell, as long as the argument specified for the parameter can be implicitly/explicitly converted to the ByRef-like type.
We cannot create an instance of a ByRef-like type in PowerShell, but there are types that can be implicitly or explicitly converted to ByRef-like types, such as `T[] -> Span<T>`, `T[] -> ReadOnlySpan<T>`, `String -> ReadOnlySpan<T>`. `ArraySegment<T> -> Span<T>`, `ArraySegment<T> -> ReadOnlySpan<T>`. With changes in this PR, we can call methods with ByRef-like parameter types by providing the arguments of the types that can be cast to the target ByRef-like type.
**What is enabled?**
1. Invoking methods that have ByRef-like parameters, but the return type is not ByRef-like.
2. Invoking constructors with ByRef-like parameters via `[target-type]::new` syntax, but the `target-type` is not ByRef-like.
3. Accessing indexers that have ByRef-like parameters, but the return type is not ByRef-like.
2018-09-11 16:57:35 -07:00
..
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-08-08 12:38:07 -07:00
2018-08-28 08:03:07 +05:00
2018-06-12 12:30:10 -07:00
2018-08-01 10:39:13 +05:00
2018-09-10 10:58:38 -07:00
2018-09-11 16:57:35 -07:00
2018-09-10 12:31:56 -07:00
2018-09-11 16:57:35 -07:00
2018-04-13 15:07:35 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-04-13 15:10:10 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-08-09 12:11:06 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-13 17:03:27 -07:00
2018-08-13 17:03:27 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-13 17:03:27 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-09-11 16:57:35 -07:00
2018-09-05 11:15:47 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-13 17:03:27 -07:00
2018-06-25 14:37:09 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-09-11 16:57:35 -07:00
2018-06-25 14:37:09 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-22 12:08:03 -07:00
2018-08-01 13:31:49 -07:00
2018-08-06 11:06:37 -07:00
2018-08-06 10:58:55 -07:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-07 14:38:22 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-08-28 09:14:33 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-06-25 14:37:09 -07:00
2018-02-13 09:23:53 -08:00
2018-07-02 11:00:27 -07:00
2018-07-06 13:28:18 -07:00
2018-08-01 10:39:13 +05:00
2018-08-13 17:03:27 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-02-13 09:23:53 -08:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-22 12:08:03 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-07-06 13:28:19 -07:00
2018-04-13 15:10:10 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-06-12 12:30:10 -07:00
2018-07-27 17:26:35 -07:00
2018-08-06 10:58:55 -07:00
2018-08-01 10:39:13 +05:00
2018-08-07 15:27:42 -07:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00
2018-08-01 10:39:13 +05:00