Example #1
0
        public Delegate CreateDelegate(Type type, Action <object[]> action)
        {
            DynamicDelegateBuilder builder = new DynamicDelegateBuilder();

            return(builder.CreateDelegate(type, action));
        }
Example #2
0
        public Delegate GetDelegate(Type type, Action <object[]> handler)
        {
            Dao.Net.Dynamic.DynamicDelegateBuilder b = new Dynamic.DynamicDelegateBuilder();

            return(b.CreateDelegate(type, handler));
        }