예제 #1
0
            public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
            {
                MethodInfo method = AsPython.GetType().GetMethod(binder.Name);

                result = method.Invoke(AsPython, args);
                return(true);
            }
예제 #2
0
 public override bool TrySetMember(SetMemberBinder binder, object value)
 {
     AsPython.GetType().GetProperty(binder.Name).SetValue(AsPython, value);
     return(true);
 }
예제 #3
0
 public override bool TryGetMember(GetMemberBinder binder, out object result)
 {
     result = AsPython.GetType().GetProperty(binder.Name).GetValue(AsPython);
     return(true);
 }