G
Guest
Jon Skeet wrote in the .NET general newsgroup 11/17/2005:
"The difference between Invoke and DynamicInvoke is that the parameters
to Invoke depend on the delegate itself - the method has the same
signature as the delegate. DynamicInvoke has a "fixed" signature, and
it dynamically calls Invoke with the appropriate parameters."
So far I have seen DynamicInvoke only used in conjunction with generics
event arguments. Is there any other usage?
When do I need to use DynamicInvoke?
What is the relation of DynamicInvoke, Delegate Covariance and Contravariance?
Given the fact that Covariance and Contravariance are not supported in
VB.NET (there is a workaround by Francesco Balena in his VB.2005 book), is it
worth any effort; ie. does it reduce my code size?
thank you very much
herbert
"The difference between Invoke and DynamicInvoke is that the parameters
to Invoke depend on the delegate itself - the method has the same
signature as the delegate. DynamicInvoke has a "fixed" signature, and
it dynamically calls Invoke with the appropriate parameters."
So far I have seen DynamicInvoke only used in conjunction with generics
event arguments. Is there any other usage?
When do I need to use DynamicInvoke?
What is the relation of DynamicInvoke, Delegate Covariance and Contravariance?
Given the fact that Covariance and Contravariance are not supported in
VB.NET (there is a workaround by Francesco Balena in his VB.2005 book), is it
worth any effort; ie. does it reduce my code size?
thank you very much
herbert