It this an example of the Single Responsibility Principle?

后端 未结 5 1051
时光说笑
时光说笑 2020-12-28 23:57

I made the following code example to learn how to use a generics method signature.

In order to get a Display() method for both Customer and Employee

5条回答
  •  一向
    一向 (楼主)
    2020-12-29 00:11

    You might have a look at IFormattable and IFormatProvider.

    The framework has formatting classes for support.

提交回复
热议问题