I think that's achieved by passing a delegate to a method but I can't write the code off the top of my head.
-----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mont Rothstein Sent: Friday, August 31, 2007 6:13 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Passing a method as a parameter Is it possible to pass a method as a parameter in C#? I want to pass a method as a parameter so that I can consolidate the code for creating a bunch of delegates. I can't figure out how to do this in C#. Thanks, -Mont =================================== 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