aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/DifxAppTupleDefinitions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/DifxAppTupleDefinitions.cs')
-rw-r--r--src/wixext/Tuples/DifxAppTupleDefinitions.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/wixext/Tuples/DifxAppTupleDefinitions.cs b/src/wixext/Tuples/DifxAppTupleDefinitions.cs
new file mode 100644
index 00000000..37dabb86
--- /dev/null
+++ b/src/wixext/Tuples/DifxAppTupleDefinitions.cs
@@ -0,0 +1,39 @@
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.DifxApp
4{
5 using System;
6 using WixToolset.Data;
7
8 public enum DifxAppTupleDefinitionType
9 {
10 MsiDriverPackages,
11 }
12
13 public static partial class DifxAppTupleDefinitions
14 {
15 public static readonly Version Version = new Version("4.0.0");
16
17 public static IntermediateTupleDefinition ByName(string name)
18 {
19 if (!Enum.TryParse(name, out DifxAppTupleDefinitionType type))
20 {
21 return null;
22 }
23
24 return ByType(type);
25 }
26
27 public static IntermediateTupleDefinition ByType(DifxAppTupleDefinitionType type)
28 {
29 switch (type)
30 {
31 case DifxAppTupleDefinitionType.MsiDriverPackages:
32 return DifxAppTupleDefinitions.MsiDriverPackages;
33
34 default:
35 throw new ArgumentOutOfRangeException(nameof(type));
36 }
37 }
38 }
39}