c# get .name property from variable : I want an c# aplication in which I can modify a specified object using an int variable or with the names saved in an array(however I Prefer using an int).

Something like this

if I have 3 buttons named bt1, bt2 and bt3, and picturepath is the path to where my pictures are ="\\".



int btnum = 1;



bt + num .backgroundpicture=picturepath+num+".png";

btnum +=1;
bt + num .backgroundpicture=picturepath+num+".png";

btnum +=1;
bt + num .backgroundpicture=picturepath+num+".png";



so that it should set the backgroundpicture of bt1 to picturepath1.png, the backgroundpicture of bt2 to picturepath2.png and the backgroundpicture of bt3 to picturepath3.png


(in a realistic schenario I will use or many objects, or When I wil create an unspecified amount of objects while running the code.)

I am sorry if my question seems quite wierd written.