Exemple #1
0
 public InvokeMemberBinderHelper(CodeContext context, InvokeMemberAction action, object[] args)
     : base(context, action)
 {
     Contract.RequiresNotNull(args, "args");
     if (args.Length < 1)
     {
         throw new ArgumentException("Must receive at least one argument, the target to call", "args");
     }
 }
Exemple #2
0
 public static InvokeMemberAction InvokeMember(string name, int argumentCount)
 {
     return(InvokeMemberAction.Make(SymbolTable.StringToId(name),
                                    InvokeMemberActionFlags.None, new CallSignature(argumentCount)));
 }