I'm making a class and I will be making about 30 objects from that class. Would it be bad to declare all the constants of my class as shared? like this:
Code:Public Class FFUser Shared ReadOnly TAG_ADMIN As String = "isAdmin" Shared ReadOnly TAG_USERNAME As String = "UserName" .... Public Function ... End Class
I was just thinking that this would save some memory if I create 30 or more instances of this class
Am I wrong![]()
thanks in advance




Reply With Quote