C
C# Learner
In a class containing only public constants - a class which will never
be instantiated or subclassed - should the class name be pluralized?
e.g.:
sealed class ErrorMessages
{
private ErrorMessages()
{
}
public const string UnableToWrite = "Unable to write to output file.";
public const string UnableToRead = "Unable to read from input file.";
}
Should this be called "ErrorMessages" or "ErrorMessage"? 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?
be instantiated or subclassed - should the class name be pluralized?
e.g.:
sealed class ErrorMessages
{
private ErrorMessages()
{
}
public const string UnableToWrite = "Unable to write to output file.";
public const string UnableToRead = "Unable to read from input file.";
}
Should this be called "ErrorMessages" or "ErrorMessage"? 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?