static void DelegateTest() { Type t = typeof(IMessageConsumer <TestMessage1>); var d = DelegateFactory.CreateMessageHandlerDelegate(t.GetMethod("Handle")); var con = new TestHandler(); d(con, new TestMessage1 { Id = 8392 }); var c1 = DelegateFactory.CreateConstructorInvocation(typeof(TestHandler).GetConstructor(new Type[] {})); }