Why prefix C# interface names with an “I”

前端 未结 18 1571
清歌不尽
清歌不尽 2021-02-01 03:13

What is the rationale behind this naming convention?

I don\'t see any benefit. The extra prefix just pollutes the API.

My thinking is inline with Konrad\'s respo

18条回答
  •  盖世英雄少女心
    2021-02-01 03:51

    Actually I find it useful to avoid naming clashes, I might for example create a concrete class called Fred that implements IFred

提交回复
热议问题