开发者

dll and class like features in c#

i'm created several utilities for attendance machines (like face Reader and oth开发者_如何学运维er) now i'm making every thing in one application. But the main data fetching part is different.

here my question is i got two options to do that

  1. by creating 'dll' for each device main functionality
  2. by creating class

is there any other options for above like features


You definitely need a new class for each device.

You probably also want a different DLL for each, but this depends on your exact requirements not explained here. Also, moving classes between DLLs is relatively easy compared to moving behavior between classes.


If you anticipate extending these devices in the future, I will create a base DLL that contains common device code, and then a separate DLL for each unique device.

If these devices are not very extensible, then use a separate class in the same DLL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜