- Your first call to
AddHostObject()creates a property named "$" whose value is a delegate with one parameter.
- Your second call to
AddHostObject()overwrites the property created in step 1. The new value is a delegate with two parameters.
The first line of your script invokes the delegate assigned in step 2, but passes only one argument.
More Pages to Explore .....