Creating event handlers at runtime. RRS feed

  • Question

  • Hello, I have the following problem.

    Assume that we have such a structure:

                object [] ahargs =  
                    new SomeDelegateType  

    I would like to create the same structure at runtime, but all that I have is
    Type TypeOfDelegate 

    I've tried using the Activator, but it cannot take an anonymous method as an argument:(
    Monday, July 7, 2008 11:51 AM