Search
Setup for Free
C
C#
•
4y ago
Oli
i have a variable in one method and want to use it in a different one
if i try make it public it breaks the whole code
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,134
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
How to use a variable from another method
C
C# / help
4y ago
✅ Change a variable in method.
C
C# / help
4y ago
❔ Is it possible to put a method into a variable and call the variable?
C
C# / help
3y ago