To use the 'I' prefix for interfaces or not to

前端 未结 20 1436
长情又很酷
长情又很酷 2021-02-01 02:54

That is the question? So how big a sin is it not to use this convention when developing a c# project? This convention is widely used in the .NET class library. However, I am not

20条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 03:43

    One idea is that the "I" part can be followed by a verb, stating what classes that implement the interface does; like ISaveXmlData, forming a nice human language name.

提交回复
热议问题