Just a quick Q, to make sure I'm writing this piece of code right. I've got a class with nothing but static variables and two classes that need to use that class. Class 1 is in the main application, and class 2 is in a dynamically-loaded assembly. Will both class 1 and 2 use the same instance of the variables? In other words, does class 2 get a separate copy of all of the static variables because it's not really part of the application?
Question
smurfiness
Just a quick Q, to make sure I'm writing this piece of code right. I've got a class with nothing but static variables and two classes that need to use that class. Class 1 is in the main application, and class 2 is in a dynamically-loaded assembly. Will both class 1 and 2 use the same instance of the variables? In other words, does class 2 get a separate copy of all of the static variables because it's not really part of the application?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts