Re: [Mono-dev] Implicit Polymorphy Question

2005-09-22 Thread Samuel Abels
On Do, 2005-09-22 at 22:58 -0400, Jonathan Pryor wrote: > With the introduction of anonymous delegates to C# 2.0, I think we need > to get more functional programmers involved. Throw in generics, and you > can do some some nifty type-safe delegate chaining: > [...] Ahh, nice, that will do. Thanks

Re: [Mono-dev] Implicit Polymorphy Question

2005-09-22 Thread Samuel Abels
On Do, 2005-09-22 at 18:45 +0200, Robert Jordan wrote: > You're looking for something like that (untested): > [...] > return d.DynamicInvoke (args); > [...] Thanks, I did not know this method before. I now implemented this using a combination of this and the Mono 2.0 generics support. Also Th

[Mono-dev] Implicit Polymorphy Question

2005-09-22 Thread Samuel Abels
Hello, Consider this class: - public class FuncCaller { public delegate void Function(object args); public Function function; public object args; public FuncCaller (Function function_, object args_) { function = function_; args = args_; } public void Cal