似たような処理が複数ある場合、それぞれ同じ処理を書こうとすると面倒である。例えば、RS232CとUDPの通信処理を実装する場合を考える。この場合、通信方式は異なるが、接続、切断、送信、受信という共通操作に違いはない。 このような場合、C#のinterface ...
Take advantage of default interface methods in C# 8.0 to add new methods to an interface without breaking existing implementations. One of the new and interesting features in C# 8.0 is the support for ...