C# Class naming convention: Is it BaseClass or ClassBase or AbstractClass

前端 未结 8 1140
时光取名叫无心
时光取名叫无心 2020-12-07 14:22

What is the recommended approach to naming base classes? Is it prefixing the type name with \"Base\" or \"Abstract\" or would we just suffi

8条回答
  •  感动是毒
    2020-12-07 15:05

    BaseEntity looks a lot like camel case - strName, bseEntity. I'd go for EntityBase since it defines the subject first, which will help you identify it's function quicker.

提交回复
热议问题