/// <summary> /// Gets every <see cref="FileHashRegion"/> that is deemed invalid. /// </summary> /// <remarks> /// Doesn't return any metadata about which file the hashes were bad for. /// Just check what's returned with what's implemented; the offsets are unique enough. /// </remarks> public IEnumerable <FileHashRegion> GetInvalidHashes() { foreach (var hash in Main.InvalidHashes()) { yield return(hash); } foreach (var hash in Players.SelectMany(z => z).SelectMany(z => z.InvalidHashes())) { yield return(hash); } }
/// <summary> /// Gets every <see cref="FileHashRegion"/> that is deemed invalid. /// </summary> /// <remarks> /// Doesn't return any metadata about which file the hashes were bad for. /// Just check what's returned with what's implemented; the offsets are unique enough. /// </remarks> public IEnumerable <FileHashRegion> GetInvalidHashes() { return(Main.InvalidHashes().Concat(Players.SelectMany(z => z.InvalidHashes()))); }