aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-02 16:33:36 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-02 21:27:50 +1000
commite9fb8cfde9cbd9f9f9f52957828b7993b9d9355a (patch)
treebee401e54d140db296e78db4e7eaa0f5d59b8ff8
parent4ebc31a7c0bfaa1901065fa588b487027a1268f9 (diff)
downloadwix-e9fb8cfde9cbd9f9f9f52957828b7993b9d9355a.tar.gz
wix-e9fb8cfde9cbd9f9f9f52957828b7993b9d9355a.tar.bz2
wix-e9fb8cfde9cbd9f9f9f52957828b7993b9d9355a.zip
Create AddTuple extension method for IntermediateSection.
-rw-r--r--src/WixToolset.Data/IntermediateSectionExtensions.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/WixToolset.Data/IntermediateSectionExtensions.cs b/src/WixToolset.Data/IntermediateSectionExtensions.cs
new file mode 100644
index 00000000..73afca7b
--- /dev/null
+++ b/src/WixToolset.Data/IntermediateSectionExtensions.cs
@@ -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
3namespace 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}