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
Post a Comment