© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
57 replies
Kekke

✅ Change a variable in method.

I'm having a brainfart moment. You see I noticed in my programm that i have 7 methods that do the same, but just with one different variable, I only want to have 1 method that does the same thing , but when i call it i change the variable myself,

heres the code:
https://imgur.com/EO43Unh

Im noob 🙂
Imgur
Preview image
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
Next page

Similar Threads

✅ variable wont change
C#CC# / help
16mo ago
❔ ✅ How to store a method's variable to main method?
C#CC# / help
3y ago
Variable changes when I leave a method
C#CC# / help
16mo ago