예제 #1
0
 public static CallSite <T> CreateCallSite <T>(
     CallSiteBinder binder,
     MemberInvocationMoniker name,
     Type context,
     string[] argumentNames = null,
     bool staticContext     = false,
     bool isEvent           = false) where T : class
 {
     return(InvocationMapping.CreateCallSite <T>(binder.GetType(), () => binder, name, context, argumentNames,
                                                 staticContext,
                                                 isEvent));
 }
예제 #2
0
 public static CallSite CreateCallSite(
     Type delegateType,
     CallSiteBinder binder,
     MemberInvocationMoniker name,
     Type context,
     string[] argumentNames = null,
     bool staticContext     = false,
     bool isEvent           = false)
 {
     return(InvocationMapping.CreateCallSite(delegateType, binder.GetType(), () => binder, name, context,
                                             argumentNames, staticContext,
                                             isEvent));
 }