c# - Can we make a public var variable that is accessible to all functions? -


i want make var variable accessible across functions ? how can make tried public var gives error?

if want have variable accessible across methods in call, you'll have move out of method it's in , move class level. can make in private prevent other classes getting it, can't have method variable available outside of method.


Comments

Popular posts from this blog

android - Automated my builds -

python - How to return the most similar word from a list of words? -

apache - GeoServer under https -