I am looking at examples of overriding TryInvokeMemberon DynamicObjectto implement dynamic method bindings. The signature is as follows
public virtual bool TryInvokeMember(
InvokeMemberBinder binder,
Object[] args,
out Object result
)
Obviously, it is resultused to pass the result back to the caller.
Since there is no overload for TryInvokeMemberwithout an resultout parameter , I assume that this method should also handle invalid methods. In this case, are there any recommendations as to what should be installed result?
The default implementation does not DynamicObjectset resultto null, and this will also be my default choice, but I could not find mention of this in the examples. Are there any recommendations for this? No matter what the result?
source
share