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

前端 未结 20 1478
长情又很酷
长情又很酷 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:38

    Look at the BCL. In the Base Class Libraries you have IList<>, IQueryable, IDisposable. If you don't prepend it with a 'I', how would people know it's an interface other than going to the definition?

    Anyways, just my 2 cents

提交回复
热议问题