Skip to content

Latest commit

 

History

History
executable file
·
15 lines (13 loc) · 421 Bytes

interface-naming.md

File metadata and controls

executable file
·
15 lines (13 loc) · 421 Bytes

C# Naming Convention > Interface Name

PascalCase

  • Begin with an uppercase letter
  • If the name contains multiple words, capitalize first letter of every word e.g. GetXmlParser()
  • Mainly adjective phrases, occasionally nouns if type is abstract
  • Avoid acronyms and abbreviations
  • Preferably use prefix letter "I" to indicate the interface type e.g. ICounter
interface IBookable<T>
{  
    ...
}