How to access app configuration from a .dll?

前端 未结 5 1995
执念已碎
执念已碎 2021-02-09 10:42

I recently broke out a part of my winform app in a .dll. Some of the classes in that dll wants fetch/store user settings. The classes just used the VS generated Settings file s

5条回答
  •  孤街浪徒
    2021-02-09 10:56

    It doesn't make a lot of sense to me to have a DLL storing user settings. A DLL is a library, not an application, and doesn't directly interact with the user. If classes in the DLL need access to user settings, you can pass them in as parameters.

提交回复
热议问题