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

前端 未结 8 1108
时光取名叫无心
时光取名叫无心 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 14:49

    We use BaseEntity, but I think it your own preference. I frequently see the other.

    Just be consistent within your context, be that your project, namespace or if possible, your team. Different conventions are worse than a bad convention IMHO.

提交回复
热议问题