Why ProblemDetails class has additional 's' in its name? #48646
-
We have a debate about whether it is appropriate to have According to this msdn docs and if I understood this doc correctly, then name should be Can anybody explain to me why |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's appropriate if the class represents something that is in plural. So why not? I think But note: naming is one of the hardest problem in software 😉 |
Beta Was this translation helpful? Give feedback.
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®exp=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…