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); }
public override bool TrySetMember(SetMemberBinder binder, object value) { AsPython.GetType().GetProperty(binder.Name).SetValue(AsPython, value); return(true); }
public override bool TryGetMember(GetMemberBinder binder, out object result) { result = AsPython.GetType().GetProperty(binder.Name).GetValue(AsPython); return(true); }