I have a bunch of pictures that I use in a C # project, and I'm trying to initialize them for future use. There are more than 50 of them, and they all have the same name format. Resources._ #, where # is the image number. What I'm trying to do is something like:
for(int i = 0; i < 100; i++) { pics[i] = Properties.Resources._i; }
How do I enable index embedding in a name?
Thank you and happy holidays.
EDIT: I just realized that if I had a way to insert an index into the name, I could just have a function that returns a specific image based on the specified number, so that would work too.
source share