Hello kalel111,
try this:
Pets pet = new Pets();pet.Name = "Fish";pet.Amount = 8;int index1 = myPets.IndexOf(pet);
No comments:
Post a Comment