Is there a way in c# or VB to dynamically call variables from a loop? Instead of going one by one of every variable?
Imagine the following example,I want to set dog1Legs, dog2Legs, dog3Legs, Is there a way how to call them from a loop?
String dog1Legs;
String dog2Legs;
String dog3Legs;
for(int i=1; i<4; i++)
{
dog(i)Legs = "test";
}