diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-04 10:18:50 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-04 10:21:25 -0700 |
| commit | 58791d3dbffce2a96280e08fc2d36ab69571d02c (patch) | |
| tree | c34a3edac0030233e4eaf79f5aacc17f9a624d28 /src/WixToolset.Data/WindowsInstaller/SequenceTableExtensions.cs | |
| parent | 4a8dc1f4d55278abdff056bb2a332ffec0f60c90 (diff) | |
| download | wix-58791d3dbffce2a96280e08fc2d36ab69571d02c.tar.gz wix-58791d3dbffce2a96280e08fc2d36ab69571d02c.tar.bz2 wix-58791d3dbffce2a96280e08fc2d36ab69571d02c.zip | |
Add SequenceTable.WindowsInstallerTableName() and other minor clean up
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/SequenceTableExtensions.cs')
| -rw-r--r-- | src/WixToolset.Data/WindowsInstaller/SequenceTableExtensions.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/SequenceTableExtensions.cs b/src/WixToolset.Data/WindowsInstaller/SequenceTableExtensions.cs new file mode 100644 index 00000000..099d722a --- /dev/null +++ b/src/WixToolset.Data/WindowsInstaller/SequenceTableExtensions.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.Data.WindowsInstaller | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Tuples; | ||
| 6 | |||
| 7 | /// <summary> | ||
| 8 | /// Enhancements to the SequenceTable enum. | ||
| 9 | /// </summary> | ||
| 10 | public static class SequenceTableExtensions | ||
| 11 | { | ||
| 12 | /// <summary> | ||
| 13 | /// Gets the SequenceTable enum as the Windows Installer table name. | ||
| 14 | /// </summary> | ||
| 15 | public static string WindowsInstallerTableName(this SequenceTable sequence) => (sequence == SequenceTable.AdvertiseExecuteSequence) ? "AdvtExecuteSequence" : sequence.ToString(); | ||
| 16 | } | ||
| 17 | } | ||
