1

Asp.net Mvc application. In project there is a resource.resx file, where there are information. From resource file I want to get the list of names. Everybody can me help?

tereško
  • 58,060
  • 25
  • 98
  • 150
Gurgen Hovsepyan
  • 406
  • 5
  • 20

2 Answers2

4

You should be able to do this by iterating through the resources through the ResourceManager.GetResourceManagerSet() method.

For more info see this question ...

Community
  • 1
  • 1
Chris
  • 3,210
  • 1
  • 33
  • 35
1

try this code

string[] fileEntries = Directory.GetFiles(Application.StartupPath.Replace("bin\\\Debug", "Resources"));
           foreach (string fileName in fileEntries)
               comboBox1.Items.Add(Path.GetFileName(fileName));
saif
  • 11
  • 3