B
blue
I know, I know, global variables are bad bad bad.
I have some readonly variables that I assign right away and they will never
change (hence the "readonly" part). I need to access these variables in
multiple classes and I don't want to have multiple declaractions all over
the place and have to remember where to update everything when I decide to
change a value in my code.
Where/how do you do this? Since I'm using ASP.NET, maybe I could put them
in the global.asax? That sounds like a really bad idea though.
I have some readonly variables that I assign right away and they will never
change (hence the "readonly" part). I need to access these variables in
multiple classes and I don't want to have multiple declaractions all over
the place and have to remember where to update everything when I decide to
change a value in my code.
Where/how do you do this? Since I'm using ASP.NET, maybe I could put them
in the global.asax? That sounds like a really bad idea though.