c# - .NET Capitalization Rules for Identifiers and property System.Text.Encoding.UTF8 -


why name of property system.text.encoding.utf8 uppercase? according capitalization rules identifiers , fact utf acronym longer 2 characters property should named system.text.encoding.utf8 or wrong?

it's uppercase because authored way.

the design , implementation of .net 1.0 (and encoding.utf8 goes way there) precedes framework design guidelines in current form, let alone enforcement. result, can find plenty of violations in framework of guidelines. small sample:

  • system.security.cryptography.rngcryptoserviceprovider (and plenty of other classes in system.security.cryptography)
  • system.text.asciiencoding
  • system.runtime.interopservices.comexception

and systematic search show many more.

this isn't silly looks: whole reason people come guidelines in first place because notice inconsistencies this, , sit down , come set of rules best reflects current practices. going change capitalization on current classes (and breaking existing software in process) isn't worth it, however.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -