本文整理汇总了C#中Schedule.ToList方法的典型用法代码示例。如果您正苦于以下问题:C# Schedule.ToList方法的具体用法?C# Schedule.ToList怎么用?C# Schedule.ToList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schedule
的用法示例。
在下文中一共展示了Schedule.ToList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SearchAllConflicts
public static IEnumerable<Conflict> SearchAllConflicts(Schedule schedule)
{
var conflicts = new List<Conflict>();
var allClasses = schedule.ToList();
conflicts.AddRange(GreaterThanFourClassesPerDay(allClasses));
conflicts.AddRange(GroupsInDifferentClassrooms(allClasses));
conflicts.AddRange(LecturersInDifferentClassrooms(allClasses));
conflicts.AddRange(LecturersOnDifferentClasses(allClasses));
conflicts.AddRange(NextClassesAtDifferentAddress(allClasses));
conflicts.AddRange(CardsWithBlankFields(allClasses));
return conflicts;
}
示例2: NextClassesAtDifferentAddress
public static IEnumerable<Conflict> NextClassesAtDifferentAddress(Schedule schedule)
{
return NextClassesAtDifferentAddress(schedule.ToList());
}
示例3: LecturersOnDifferentClasses
public static IEnumerable<Conflict> LecturersOnDifferentClasses(Schedule schedule)
{
return LecturersOnDifferentClasses(schedule.ToList());
}
示例4: GroupsInDifferentClassrooms
public static IEnumerable<Conflict> GroupsInDifferentClassrooms(Schedule schedule)
{
return GroupsInDifferentClassrooms(schedule.ToList());
}
示例5: GreaterThanFourClassesPerDay
public static IEnumerable<Conflict> GreaterThanFourClassesPerDay(Schedule schedule)
{
return GreaterThanFourClassesPerDay(schedule.ToList());
}
示例6: CardsWithBlankFields
public static IEnumerable<Conflict> CardsWithBlankFields(Schedule schedule)
{
return CardsWithBlankFields(schedule.ToList());
}