diff options
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) |
