What do want to put in your List? The
RoomNumber
?
Maybe this will help you... not the best solution... but it is one ;)
List<string> test = new List<string>();
foreach (CheckInData checkInData in CheckInCollection)
{
if (!test.Contains(checkInData.RoomNumber))
test.Add(checkInData.RoomNumber);
}
</string></string>
Renamed the variable
coll
into
checkInData
...