EDIT: Turns out these are properties, not fields, so:
foreach (PropertyInfo property in typeof(Properties.Resources).GetProperties
(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic))
{
Console.WriteLine("{0}: {1}", property.Name, property.GetValue(null, null));
}
Note that this will also give you the ResourceManager and Culture properties.
source
share