I would like to store an object FOO in a database. Lets say FOO contains three integers and a list of \"Fruits\".
The list can have any len
Its technically possible but would be very poor design, imo.
You could do it by building the string and storing it in a nvarchar(max) field (if using sql server or its equivalent).