© 2026 Hedgehog Software, LLC

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

❔ Return two values from a method

So im making a blackjack game and i have a method where the player or the dealer draws cards. I want to implement aces and i thought that making a boolean and checking if the drawed card is an ace is the best method but i dont know how to return 2 values from a method. I researched it and i found 3 things: out, ref and tuples. Didnt understand none of them. Can someone help me? Also any other advice on the code would be greatly appreciated!
Code: https://paste.mod.gg/jriutqhrhrvq/0
BlazeBin - jriutqhrhrvq
A tool for sharing your source code with the world!
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
C#CC# / help
4y ago
✅ Getting multiple return values from a method called using InvokeMember
C#CC# / help
3y ago
How to get a specific value from a method with multiple return values?
C#CC# / help
12mo ago
Method doesnt return
C#CC# / help
3y ago