Pascal casing or Camel Casing for C# code?

后端 未结 14 1060
终归单人心
终归单人心 2020-12-05 17:17

I\'ve been arguing with my coworkers about Pascal casing (upper camel case) vs. lower CamelCasing. They are used to lower camel casing for everything from table names in SQL

相关标签:
14条回答
  • 2020-12-05 18:19

    I use what the Framework uses, as it's the de-facto best practice. However, so long as the code in your company is consistently using their style, then you're much better off getting used to it. If every developer has their own standard, then there's no standard at all.

    0 讨论(0)
  • 2020-12-05 18:19

    A link to the official design guidelines might help. Specifically, read the section on Capitalization styles.

    In the grand scheme of things, Pascal vs Camel doesn't matter that much and you're not likely to convince anyone to go back over an existing code base just to change the case of names. What's really important is that you want to be consistent within a given code base.

    I'm just happy as long as you're not using Hungarian.

    0 讨论(0)
提交回复
热议问题