[Solved] C# Class Add ID from one class to another
Instantiate your AnimalList class somewhere(for example in main method) and then add the instances of an Animal class. for example: var animals = new AnimalList(); animals.Add(new Animal() { Name = “”, Type = “”, Gender = “”}); 2 solved C# Class Add ID from one class to another