diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-24 08:47:36 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-24 15:18:30 -0700 |
| commit | 7462108b714d07161126dcedda5312daef54ae13 (patch) | |
| tree | 5d7021acbbedafd6373fc26c609c2d4c85332075 /src/WixToolset.Data/IntermediateFieldExtensions.cs | |
| parent | 9d0fea2e7617e4ba4fc85fbe412c812d9bc65564 (diff) | |
| download | wix-7462108b714d07161126dcedda5312daef54ae13.tar.gz wix-7462108b714d07161126dcedda5312daef54ae13.tar.bz2 wix-7462108b714d07161126dcedda5312daef54ae13.zip | |
Add tuple.IsNull(), remove fields when set to default and other small fixes
Diffstat (limited to 'src/WixToolset.Data/IntermediateFieldExtensions.cs')
| -rw-r--r-- | src/WixToolset.Data/IntermediateFieldExtensions.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WixToolset.Data/IntermediateFieldExtensions.cs b/src/WixToolset.Data/IntermediateFieldExtensions.cs index 2f8aec1d..a73a6552 100644 --- a/src/WixToolset.Data/IntermediateFieldExtensions.cs +++ b/src/WixToolset.Data/IntermediateFieldExtensions.cs | |||
| @@ -9,6 +9,8 @@ namespace WixToolset.Data | |||
| 9 | [ThreadStatic] | 9 | [ThreadStatic] |
| 10 | internal static string valueContext; | 10 | internal static string valueContext; |
| 11 | 11 | ||
| 12 | public static bool IsNull(this IntermediateField field) => field?.Value?.Data == null; | ||
| 13 | |||
| 12 | public static bool AsBool(this IntermediateField field) | 14 | public static bool AsBool(this IntermediateField field) |
| 13 | { | 15 | { |
| 14 | if (field == null || field.Value == null || field.Value.Data == null) | 16 | if (field == null || field.Value == null || field.Value.Data == null) |
