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 Jonathan Pryor
On Thu, 2005-09-22 at 23:26 +0200, Samuel Abels wrote: > 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 u

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

Re: [Mono-dev] Implicit Polymorphy Question

2005-09-22 Thread Robert Jordan
Samuel Abels wrote: 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_

RE: [Mono-dev] Implicit Polymorphy Question

2005-09-22 Thread JD Conley
> I have only found the .NET 2.0 "generics" that might help, but > apparently Mono does not yet have support for them in regular releases > (though I found a note that it is available in CVS already). > Is there a (typesafe) way to accomplish something similar without using > generics? Yes, you wa