Benefits of implementing an interface

后端 未结 10 1095
小鲜肉
小鲜肉 2020-12-06 04:58

what are the benefits of implementing an interface in C# 3.5 ?

10条回答
  •  伪装坚强ぢ
    2020-12-06 06:01

    If you work in a huge, commercial software house - you MIGHT want to consider the judicial use of Interfaces. Otherwise, you should stay away from them. Same for multi-threading. If I see one more script-kiddie app that spawns 20 threads to write "Hello World" I'm gonna freak. Multi-threading should be completely reserved for apps that require it, usually in a multi-processing environment. 90% of the time it causes more harm than good. And don't bother with the thread highjack / off-topic comments. I don't care. I've been doing this longer than most of you have been alive. Rank has its privileges.

提交回复
热议问题