dynamitey | pronounced dyna-mighty ) flexes DLR muscle | Reflection library
kandi X-RAY | dynamitey Summary
kandi X-RAY | dynamitey Summary
(pronounced dyna-mighty) flexes DLR muscle to do meta-mazing things in .net
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dynamitey
dynamitey Key Features
dynamitey Examples and Code Snippets
Community Discussions
Trending Discussions on dynamitey
QUESTION
I have a type instance t
:
- with a function of whose signature I know only general structure like this
public void Action(T1in ps, ..., TNin ps, out T1out,..., out TKout)
and two Dictionaries In
and Out
- with pairs of
{Type, instance}
inside.
I assume that there are no other arguments required in order to call an Action
of t
.
So how to call a function with multiple inputs and outputs using Reflection/Dynamitey knowing their types yet not their order?
...ANSWER
Answered 2020-Jul-04 at 13:30When you invoke a method via reflection, you pass an object[]
containing all of the parameters. For out
parameters, you leave the corresponding value in the array as null
. Once the method has completed you can retrieve the value from the corresponding position in the array.
To demonstrate this, let's assume the following two classes:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dynamitey
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page