I have a central library (DLL) called Core that is used by many projects (Some web apps, some win forms, some other class libraries).
Some resources are stored in the Core library.
When I need to use a resource file in the Core library, I need to know what the culture info is. Because it is sometimes used in a win form app, sometimes in a web app, I can't really use the culture from HttpContext or from the CurrentThread.
I imagine that this a common problem, so I am wondering :
What's a good strategy to pass the culture information around between DAL dlls and UI projects?
You can always get the culture from the CurrentThread. It's supported both in WinForms and Web Applications. Even better: you'll probably won't need to bother about this at all, as the resource manager in .NET will handle this based on the current culture.