Example #1
0
 public Delegate Constructor(ConstructorInfo constructor, Type delegateType)
 {
     return(BuildDelegate(DelegateMap.Constructor(delegateType, constructor),
                          parameters => Expression.New(constructor, parameters)));
 }
 public Delegate Constructor(ConstructorInfo constructor, Type delegateType)
 {
     return(BuildDelegate(DelegateMap.Constructor(delegateType, constructor),
                          il => il.Emit(OpCodes.Newobj, constructor)));
 }