C# (CSharp) PetFactory.Create - 2 examples found. These are the top rated real world C# (CSharp) examples of PetFactory.Create extracted from open source projects. You can rate examples to help us improve the quality of examples.
public void CreatePet(string[] args)
{
string name = args[2];
int age = int.Parse(args[3]);
string kind = args[4];
Pet pet = petFactory.Create(name, age, kind);
pets.Add(pet);
}