for example:
void FilterA(Hashset<T> blackList, List<T> myList)
{
blackList.UnionWith(myList);
}
I don’t know if there would be some good coding styles that separates blackList and myList apart. Or is it necessary at all?
If you don’t
List<T>specific members, you could use a non-mutable interface instead.IEnumerable<T>is a good candidate.