diff options
Diffstat (limited to 'src/WixToolset.Data/IntermediateFieldExtensions.cs')
-rw-r--r-- | src/WixToolset.Data/IntermediateFieldExtensions.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/WixToolset.Data/IntermediateFieldExtensions.cs b/src/WixToolset.Data/IntermediateFieldExtensions.cs index 6bc82b37..2f8aec1d 100644 --- a/src/WixToolset.Data/IntermediateFieldExtensions.cs +++ b/src/WixToolset.Data/IntermediateFieldExtensions.cs | |||
@@ -1,4 +1,4 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
4 | { | 4 | { |
@@ -151,6 +151,11 @@ namespace WixToolset.Data | |||
151 | } | 151 | } |
152 | } | 152 | } |
153 | 153 | ||
154 | public static object AsObject(this IntermediateField field) | ||
155 | { | ||
156 | return field?.Value.Data; | ||
157 | } | ||
158 | |||
154 | public static IntermediateField Set(this IntermediateField field, bool value) | 159 | public static IntermediateField Set(this IntermediateField field, bool value) |
155 | { | 160 | { |
156 | object data; | 161 | object data; |