Skip to content

Commit 368b120

Browse files
authored
Merge pull request #2589 from MDoerner/ReworkParseCoordinatorPart1
Rework parse coordinator part1
2 parents 1d8510c + da98049 commit 368b120

File tree

3 files changed

+185
-233
lines changed

3 files changed

+185
-233
lines changed

Rubberduck.Parsing/VBA/EnumerableExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ public static IEnumerable<T> DistinctBy<T, TKey>(this IEnumerable<T> source, Fun
2020
var hashSet = new HashSet<TKey>();
2121
return source.Where(item => hashSet.Add(keySelector(item)));
2222
}
23+
24+
public static HashSet<T> ToHashSet<T>(this IEnumerable<T> source)
25+
{
26+
return new HashSet<T>(source);
27+
}
2328
}
2429
}

0 commit comments

Comments
 (0)