Example #1
0
        public static DynamicExpression GetMember(ActionBinder binder, string name, GetMemberBindingFlags getMemberFlags, Type result, params Expression[] arguments)
        {
            ContractUtils.RequiresNotNull(arguments, "arguments");
            ContractUtils.Requires(arguments.Length > 0, "arguments");

            return(Expression.Dynamic(OldGetMemberAction.Make(binder, name, getMemberFlags), result, arguments));
        }
Example #2
0
 /// <summary>
 /// Creates ActionExpression representing a GetMember action.
 /// </summary>
 /// <param name="name">The qualifier.</param>
 /// <param name="result">Type of the result desired (The ActionExpression is strongly typed)</param>
 /// <param name="arguments">Array of arguments for the action expression</param>
 /// <param name="getMemberFlags">The binding flags for the get operation</param>
 /// <returns>New instance of the ActionExpression</returns>
 public static ActionExpression GetMember(SymbolId name, GetMemberBindingFlags getMemberFlags, Type result, params Expression[] arguments)
 {
     return(ActionExpression(GetMemberAction.Make(name, getMemberFlags), arguments, result));
 }
Example #3
0
 private OldGetMemberAction(ActionBinder binder, SymbolId name, GetMemberBindingFlags bindingFlags)
     : base(binder, name)
 {
     _flags = bindingFlags;
 }
Example #4
0
 public static OldGetMemberAction Make(ActionBinder binder, SymbolId name, GetMemberBindingFlags bindingFlags)
 {
     ContractUtils.RequiresNotNull(binder, "binder");
     return(new OldGetMemberAction(binder, name, bindingFlags));
 }
Example #5
0
 public static OldGetMemberAction Make(ActionBinder binder, string name, GetMemberBindingFlags bindingFlags)
 {
     return(Make(binder, SymbolTable.StringToId(name), bindingFlags));
 }
Example #6
0
 private GetMemberAction(SymbolId name, GetMemberBindingFlags bindingFlags)
     : base(name)
 {
     _flags = bindingFlags;
 }
Example #7
0
 public static GetMemberAction Make(SymbolId name, GetMemberBindingFlags bindingFlags)
 {
     return(new GetMemberAction(name, bindingFlags));
 }
Example #8
0
 public static GetMemberAction Make(string name, GetMemberBindingFlags bindingFlags)
 {
     return(Make(SymbolTable.StringToId(name), bindingFlags));
 }
Example #9
0
        public static DynamicExpression GetMember(ActionBinder binder, string name, GetMemberBindingFlags getMemberFlags, Type result, params Expression[] arguments) {
            ContractUtils.RequiresNotNull(arguments, "arguments");
            ContractUtils.Requires(arguments.Length > 0, "arguments");

            return Expression.Dynamic(OldGetMemberAction.Make(binder, name, getMemberFlags), result, arguments);
        }
 /// <summary>
 /// Creates ActionExpression representing a GetMember action.
 /// </summary>
 /// <param name="name">The qualifier.</param>
 /// <param name="result">Type of the result desired (The ActionExpression is strongly typed)</param>
 /// <param name="arguments">Array of arguments for the action expression</param>
 /// <param name="getMemberFlags">The binding flags for the get operation</param>
 /// <returns>New instance of the ActionExpression</returns>
 public static ActionExpression GetMember(SymbolId name, GetMemberBindingFlags getMemberFlags, Type result, params Expression[] arguments) {
     return ActionExpression(GetMemberAction.Make(name, getMemberFlags), arguments, result);
 }