-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Function Result #55
base: develop
Are you sure you want to change the base?
Conversation
|
||
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) | ||
{ | ||
if (binder.Name == "GetMetadata" && binder.CallInfo.ArgumentCount == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this code GetMetadata
can be called on the results to get the current metadata. Not sure if we should expose it like this or just hide it.
var result = fn.Invoke<dynamic>();
result.GetMetadata();
result.MY_STRUCT.GetMetadata();
result.MY_TABLE.GetMetadata();
result.MY_TABLE[0].GetMetadata();
Good work, nice feature. Can we push and publish it? |
Rebased and ready for review. |
Thank you very much for your current version of dynamicrfc. Can the incoming parameters also be dynamically modified? @campersau |
guys: Thank you very much! |
Adds support for invoking a function with a
dynamic
return type. Values are read on demand and can not be accessed once the function gets disposed.Which means that this feature in its current state is not supported bySapPooledConnection
.See #36 (comment) for more usage details.