sorry if my English is not good. But there is a problem in C# I really need you guys to help me, thank you! If I have a class as below:
class InfoOfAnimal
{
public int Legs;
}
And I have an string array of 40 kind of animals named "Animals" including: cat, dog, ant... Each of "Animals", I want to create a new class InfoOfAnimal with the name is that elements of the array such as:
InfoOfAnimal dog= new InfoOfAnimal;
And when int Legs of dog has a value which is not null, the InfoOfAnimal cat will be automatically created and so on until the last element of the "Animals". I wonder is there any way to do that? Thank you you guys so much !