コード例 #1
0
        public virtual RuleBuilder <T> GetRule <T> (OldDynamicAction action, CodeContext context, object [] args) where T : class
        {
            switch (action.Kind)
            {
            case DynamicActionKind.Call:
                return(new CallBinderHelper <T> (context, (OldCallAction)action, args).MakeRule());

            case DynamicActionKind.CreateInstance:
                return(new CreateInstanceBinderHelper <T> (context, (OldCreateInstanceAction)action, args).MakeRule());

            case DynamicActionKind.DeleteMember:
                return(new DeleteMemberBinderHelper <T> (context, (OldDeleteMemberAction)action, args).MakeRule());

            case DynamicActionKind.DoOperation:
                return(new DoOperationBinderHelper <T> (context, (OldDoOperationAction)action, args).MakeRule());

            case DynamicActionKind.GetMember:
                return(new GetMemberBinderHelper <T> (context, (OldGetMemberAction)action, args).MakeRule());

            case DynamicActionKind.SetMember:
                return(new SetMemberBinderHelper <T> (context, (OldSetMemberAction)action, args).MakeRule());

            default:
                throw new NotImplementedException();
            }
        }
コード例 #2
0
 public override RuleBuilder <T> GetRule <T> (OldDynamicAction action, CodeContext context, object [] args)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 protected override RuleBuilder <T> MakeRule <T> (OldDynamicAction action, object [] args)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public RuleBuilder <T> GetRule <T>(OldDynamicAction action, CodeContext context, object[] args) where T : class
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public override MemberGroup GetMember(OldDynamicAction action, Type type, string name)
 {
     throw new NotImplementedException();
 }