I have an App_GlobalResources
folder populated with .resx
files, e.g. WebResources.de.resx
, WebResources.fr.resx
.
How can I programatically check using C# that a specific WebResource file exists (or not) for a particular language (e.g. en, fr, de)?
using
System.Resources.ResourceReader resourceFile = new System.Resources.ResourceReader("file.resx");
This gives an exception if the file is not existing or if not in proper format.