我有 List List courseTakenList。我想过滤掉Completed,Dropped,Current,Schudeled
. 这是代码示例。
courseTakenList = (from courseTaken in courseTakenList
select new Course
{
Status = "Scheduled"?"COMPLETE"?"Dropped"? "Current"
}).ToList();