I may be wrong but when you reference a static (const in this case) variable
an instance of the class object in which it resides is not created, not sure
if this is the case with struct being a value type...
If it is then doesn't matter. If it isn't, go with the class.
"Sunny" <su***@newsgroups.nospam> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
Hi,
I want to create a separate container for a bunch of constants used in
different classes, like:
internal class Constants
{
private Constants(){}
public const string CONST1 = "1";
.....
}
So, what's better for this container, to be class or struct? Why?
Sunny