What is the recommended way to store application-wide values like the path of its AppData folder?

  Kiến thức lập trình

I’m working on a C# application and need to store application-wide values in a MVVM project, such as the path to its AppData folder. What is the recommended approach to achieve this? I’m very new to C# and not aware of the best practices when it comes to coding.

Things that I’ve read that I could probably apply?

  1. App.config
  2. Singleton
  3. Dependency Injection

LEAVE A COMMENT