© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Next page
Similar Threads
✅ variable wont change
C
C# / help
16mo ago
❔ ✅ How to store a method's variable to main method?
C
C# / help
3y ago
Variable changes when I leave a method
C
C# / help
16mo ago