public static IEnumerable <BaseCard> LessonsOfType(this CardCollection collection, LessonTypes type) { return(collection.Lessons.Where(c => ((BaseLesson)c).LessonType == type)); }
public static IEnumerable <BaseCard> LessonsOfType(this CardCollection collection, LessonTypes type) { return(collection.Lessons.Where(c => ((BaseLesson)c).LessonType == type)); }