Create AddTuple extension method for IntermediateSection.
Sean Hall committed
Apr 2, 2020 at 16:33 UTC
e9fb8cfde9cbd9f9f9f52957828b7993b9d9355a
1 file changed
+14
src/WixToolset.Data/IntermediateSectionExtensions.cs
new
+14
@@ -0,0 +1,14 @@
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.Data
4
+{
5
+ public static class IntermediateSectionExtensions
6
+ {
7
+ public static T AddTuple<T>(this IntermediateSection section, T tuple)
8
+ where T : IntermediateTuple
9
+ {
10
+ section.Tuples.Add(tuple);
11
+ return tuple;
12
+ }
13
+ }
14
+}