The Application class in System.Windows.Forms have a some properties that can be quite useful. For example:
- ProductName
- ProductVersion
- CompanyName
- ExecutablePath
- StartupPath
- CommonAppDataPath
- CommonAppDataRegistry
- UserAppDataPath
- UserAppDataRegistry
- LocalUserAppDataPath
Why are these in in a class in System.Windows.Forms? What if I wanted to access the CommonAppDataPath in a console application? Would I have to reference System.Windows.Forms.dll then, or is there an alternative for console applications?