[Solved] C# Class Add ID from one class to another
[ad_1] 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 [ad_2] solved C# Class Add ID from one class to another