diff options
| author | Bob Arnson <bob@firegiant.com> | 2020-08-21 17:12:53 -0400 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2020-08-21 17:16:04 -0400 |
| commit | b2e187154d8c89954a8659c3bd19c3dc89fdfbce (patch) | |
| tree | d646bcb4cceaf016dd0a706066e0df3aa2bdf5fc /src/WixToolset.Data/WindowsInstaller | |
| parent | c6779d3cb55a77609db839258e3c1f6db7490a70 (diff) | |
| download | wix-b2e187154d8c89954a8659c3bd19c3dc89fdfbce.tar.gz wix-b2e187154d8c89954a8659c3bd19c3dc89fdfbce.tar.bz2 wix-b2e187154d8c89954a8659c3bd19c3dc89fdfbce.zip | |
Remove serialization classes and add Row.IsColumnNull.
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller')
| -rw-r--r-- | src/WixToolset.Data/WindowsInstaller/Row.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Row.cs b/src/WixToolset.Data/WindowsInstaller/Row.cs index 8c847c5b..f44082d3 100644 --- a/src/WixToolset.Data/WindowsInstaller/Row.cs +++ b/src/WixToolset.Data/WindowsInstaller/Row.cs | |||
| @@ -196,13 +196,20 @@ namespace WixToolset.Data.WindowsInstaller | |||
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | /// <summary> | 198 | /// <summary> |
| 199 | /// Returns true if the specified field is null. | ||
| 200 | /// </summary> | ||
| 201 | /// <param name="field">Index of the field to check.</param> | ||
| 202 | /// <returns>true if the specified field is null, false otherwise.</returns> | ||
| 203 | public bool IsColumnNull(int field) => this.Fields[field].Data == null; | ||
| 204 | |||
| 205 | /// <summary> | ||
| 199 | /// Returns true if the specified field is null or an empty string. | 206 | /// Returns true if the specified field is null or an empty string. |
| 200 | /// </summary> | 207 | /// </summary> |
| 201 | /// <param name="field">Index of the field to check.</param> | 208 | /// <param name="field">Index of the field to check.</param> |
| 202 | /// <returns>true if the specified field is null or an empty string, false otherwise.</returns> | 209 | /// <returns>true if the specified field is null or an empty string, false otherwise.</returns> |
| 203 | public bool IsColumnEmpty(int field) | 210 | public bool IsColumnEmpty(int field) |
| 204 | { | 211 | { |
| 205 | if (null == this.Fields[field].Data) | 212 | if (this.IsColumnNull(field)) |
| 206 | { | 213 | { |
| 207 | return true; | 214 | return true; |
| 208 | } | 215 | } |
