Skip to content

Why ProblemDetails class has additional 's' in its name? #48646

Closed Answered by gfoidl
NiceStepUp asked this question in General
Discussion options

You must be logged in to vote

is appropriate to have s or plural names in a class name

It's appropriate if the class represents something that is in plural. So why not?
For example look at https://grep.app/search?q=class%20%5Cw%2Bs%20&regexp=true&filter[lang][0]=C%23 which shows quite some class names ending with s.
That search also shows a basic .NET type -- especially in the event based world -- EventArgs with a plural name (as it can have more than one actual args).

I think ProblemDetails is correct, as it shows the details of the problem, which can be more than one -- so plural.

But note: naming is one of the hardest problem in software 😉
So choose a name that suits best your needs, and don't stick too hard to g…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gfoidl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants