diff options
Diffstat (limited to 'src/wix/WixToolset.Converters/HashSetExtensions.cs')
-rw-r--r-- | src/wix/WixToolset.Converters/HashSetExtensions.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wix/WixToolset.Converters/HashSetExtensions.cs b/src/wix/WixToolset.Converters/HashSetExtensions.cs new file mode 100644 index 00000000..49b0d4ac --- /dev/null +++ b/src/wix/WixToolset.Converters/HashSetExtensions.cs | |||
@@ -0,0 +1,17 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Converters | ||
4 | { | ||
5 | using System.Collections.Generic; | ||
6 | |||
7 | internal static class HashSetExtensions | ||
8 | { | ||
9 | public static void AddRange<T>(this HashSet<T> set, IEnumerable<T> values) | ||
10 | { | ||
11 | foreach (var value in values) | ||
12 | { | ||
13 | set.Add(value); | ||
14 | } | ||
15 | } | ||
16 | } | ||
17 | } | ||