diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-22 00:19:41 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 15:43:40 -0700 |
| commit | 54541ef517190f37d0625627b028834f0871a959 (patch) | |
| tree | 91ff4d813d5013260c04854a9ad24812ccdffa08 /src/WixToolset.Data/IntermediateFieldExtensions.cs | |
| parent | 505fe69d85c90184cd37290ccb0120fec6074c20 (diff) | |
| download | wix-54541ef517190f37d0625627b028834f0871a959.tar.gz wix-54541ef517190f37d0625627b028834f0871a959.tar.bz2 wix-54541ef517190f37d0625627b028834f0871a959.zip | |
Implement many more strong tuples
Also fixes several warnings.
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; |
