C
C#2y ago
FSHF

var, static void

Need to use same var for 2 diffrent static void, how?
6 Replies
Buddy
Buddy2y ago
$details
MODiX
MODiX2y ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
FSHF
FSHFOP2y ago
i have a varible that i would like to use across 2 static void, is there a way to do it not sure what more to add
Jimmacle
Jimmacle2y ago
declare it in a scope where both methods can see it for example, a static property in a class
FSHF
FSHFOP2y ago
could you show an example
cap5lut
cap5lut2y ago
a static member would be an example tho, usually u want to avoid that, especially for mutable stuff. for more u need to give more context
Want results from more Discord servers?
Add your server