I am writing a class and has one variable(X) that will use anywhere in this class (Class A). So I declare X in Module and initialize X at New subrouting but I read in MSDN that declaring variable in Module variable will be implicitly Shared.
What I want is to declare X in Class A that X can be use anywhere in Class A but has its own value in each instance of Class A.
I also use Friend key word but it not working when I have more than one instance.
What I want is to declare X in Class A that X can be use anywhere in Class A but has its own value in each instance of Class A.
I also use Friend key word but it not working when I have more than one instance.