C
C# Learner
In a class containing only constant data, should the class name be
pluralized?
e.g.:
class SecretCodes
{
public const string Alpha = "asfasfdfsadf";
public const string Beta = "sadfsfdsasfdasfad";
}
Should this be called "SecretCodes" or "SecretCode"? I instinctively
think that the plural is suitable, but then, when declaring enumerations
we use the singular. Then again, enumerations are different in that
they can be instantiated.
So which is the correct way?
pluralized?
e.g.:
class SecretCodes
{
public const string Alpha = "asfasfdfsadf";
public const string Beta = "sadfsfdsasfdasfad";
}
Should this be called "SecretCodes" or "SecretCode"? I instinctively
think that the plural is suitable, but then, when declaring enumerations
we use the singular. Then again, enumerations are different in that
they can be instantiated.
So which is the correct way?