bfr/BFR/Helpers/Extensions.cs
adroslice 0bc82dc6b5 Structuring, added file lists
- You can now open a directory
- The current filenames and previews are now displayed in the listboxes
- Added method pipeline for updating the lists (OpenDirectory -> Filter -> Preview)
2019-11-14 19:08:21 +01:00

15 lines
323 B
C#

using System.Collections.Generic;
namespace BFR.Helpers
{
public static class IListExtensions
{
public static void ReplaceAll<T>(this IList<T> list, IEnumerable<T> replacement)
{
list.Clear();
foreach (var t in replacement)
list.Add(t);
}
}
}