© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
9 replies
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
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ Change a variable in method.
C#CC# / help
4y ago
How to use a variable from another method
C#CC# / help
4y ago
❔ Is it possible to put a method into a variable and call the variable?
C#CC# / help
4y ago