© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
23 replies
Thomoski

✅ Getting multiple return values from a method called using InvokeMember

So I'm using InvokeMember to call methods on a variety of different objects, all of which use a tuple return type to return multiple values. The issue I'm having is when one of these methods does return the multiple values, I'm getting an InvalidCastException. This is the implementation I've got for the InvokeMember - is it possible to use Tuple return types with InvokeMember, or am I just doing it wrong here?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Return two values from a method
C#CC# / help
3y ago
How to get a specific value from a method with multiple return values?
C#CC# / help
12mo ago
❔ Binding method called multiple times
C#CC# / help
3y ago