1

Dashes - can't be used in C# to name classes. Are there any good character alternatives, other than underscores? _

I'm looking for a character to add some readability to longer class names. Thanks!

Looking to not use casing methods.. Something to replace this underscore... I find this to look horrible at a glance..

ClassAIsThisFirstVariable
ClassAIsThisSecondVariable
ClassAIsThisThirdsVariable

Just looking for an underscore replacement..

ClassAIsThis_FirstVariable
ClassAIsThis_SecondVariable
ClassAIsThis_ThirdVariable
user111222333
  • 99
  • 1
  • 11
  • 2
    just use proper casing like `ThisIsAReallyLongClassName` – Ron Beyer Jul 17 '15 at 22:22
  • Could you provide concrete example? Usually Pascal casing is enough. Problems occur mainly for the words that can be either noun or a verb. – Pavel Voronin Jul 17 '15 at 22:23
  • Yeah, it's just that my eyes start to blur when I use casing methods for this particular scenario. A separate would be great, but I'm almost physically allergic to underscores. – user111222333 Jul 17 '15 at 22:32

1 Answers1

0

Take a look at this and this for some options.

Note that the underscore is the most standard character for this purpose so to my opinion, replacing it will actually lead to less readability...

Community
  • 1
  • 1
It-Z
  • 1,961
  • 1
  • 23
  • 33