Property PetData
is of type string
. You should assign string to it. Simplest way to build string in some specific format is String.Format
method:
Session.GetBobbaz().PetData =
String.Format("{0} {1} {2}", typeanimal, race, color);
It gets string representation of each parameter you pass and puts them in format placeholders (by index).