[Journal - Late-bound Delegate Creation Revisited]

Late-bound Delegate Creation Revisited

Sunday, June 6, 2004

It turns out that the .NET framework already supports creating delegates based on method information at run time. The System.Delegate.CreateDelegate methods are roughly equivalent to what I offer in the Gregor.Core.Reflect module, although non-public and special (i.g., property accessors) methods must be shared (see their overload list). My reinventing the wheel has another advantage: it's possible to use handler method that don't match the delegate's signature, but are argument-compatible.