Peter, your reply appears to have been cut off. My question for both you and Alex (thank you both for responding) is how to do this generically.
Perhaps a little more detail will help. I found a bit of Microsoft code for Command Management ( http://msdn.microsoft.com/msdnmag/issues/02/10/CommandManagement/). In it when creating a command you pass in a delegate. Ex: new Command( "EditCopy", new Command.ExecuteHandler(OnCopy), new Command.UpdateHandler(UpdateCopyCommand)) When doing this over and over again it would be much easier if the above method call looked like: new Command("EditCopy", OnCopy, UpdateCopyCommand) And then I could create the delegate inside the method. This is what I am trying to figure out how to do. If this is possible and someone could show me how to declare a method that would accept methods like the above example I would appreciate it. Thanks, -Mont On 9/1/07, Peter Ritchie < [EMAIL PROTECTED]> wrote: > > Yes, in safe managed code it's with a delegate. You need to keep the > object pointer and the method pointer pair together, which is what a > delegate does for you. You'll have to declare the > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com