I try to get all resource names from properties.resources and fill listbox with them. Here is code:
static string GetNameOf<T>(Expression<Func<T>> property)
{
return (property.Body as MemberExpression).Member.Name;
}
private void button_Click(object sender, RoutedEventArgs e)
{
var s = GetNameOf(() => Properties.Resources.Lil);
MessageBox.Show(s);
}
(with this button and messagebox i try output)
Here is OK, but the problem is that i must take every resource separately. My idea is to take names foreach resource most inteligent. Maybe is easy but I still learn and I'm still new in codding.