calling methods dynamically with ByRef argument is not handled properly, resulting in run-time exception.
this happens only in some cases, this feature seems to be implemented already for PHP-like functions already implemented when a function argument is a PHP-like PhpAlias.
public class X {
public void test( out Dictionary<string, string> d) {
d = new Dictionary<string, string>() {
{ "a", "b" },
};
}
}
<?php
// $unk = new X;
$unk->test( $d ); // exception at run time
print_r( $d );
[x] do not load full value for out arguments
[x] dynamic write-back mechanism (already impl. at compile time)
[x] write back to local variable
[x] write back to global variable
[x] write back to an array item or property (runtime chain), only expect PhpValue/PhpAlias
[ ] write back to "runtime chain" targeting other types than PhpValue/PhpAlias
[x] out/ref parameter not provided (do not crash, ignore)
calling methods dynamically with ByRef argument is not handled properly, resulting in run-time exception.
this happens only in some cases,
this feature seems to be implemented already for PHP-like functionsalready implemented when a function argument is a PHP-likePhpAlias
.out
arguments