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