public static IEnumerable <TaleNews> GetAllNonPermForgottenNews(this TaleNewsDatabase database) { if (database == null) { // This is highly unlikely, but be prepared. return(Enumerable.Empty <TaleNews>()); } return(database.ListOfAllTaleNews.FindAll((TaleNews news) => !news.PermanentlyForgotten).Select((TaleNews news) => news)); }
/// <summary> /// Checks that the TNDBS data structure is up to date, and attempts to correct any errors. /// </summary> /// <param name="taleNewsDatabase"></param> public static void VerifyTNDBS(TaleNewsDatabase taleNewsDatabase) { }