Assuming alertVar
is your list of Alert
, you can do something like:
string some_string;
foreach (var alert in alertVar)
{
some_string += alert.type + ", ";
}
This will add all the types to a long string (some_string
).
You can do the same for whichever property you want ...