Hey
I have a class ,and have static string member in it.
can i use the static string even if the class insnanse was dispose ?
Printable View
Hey
I have a class ,and have static string member in it.
can i use the static string even if the class insnanse was dispose ?
Yes, these variables are not linked to any instance. As long as the class definition is in scope, the static variables should be accessible if they are public. If they are private, use or make properties.
And on a side note, you cannot "dispose a class", but I get what you were trying to say.