aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller')
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Row.cs9
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 }