aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/Row.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-08-21 17:12:53 -0400
committerBob Arnson <bob@firegiant.com>2020-08-21 17:16:04 -0400
commitb2e187154d8c89954a8659c3bd19c3dc89fdfbce (patch)
treed646bcb4cceaf016dd0a706066e0df3aa2bdf5fc /src/WixToolset.Data/WindowsInstaller/Row.cs
parentc6779d3cb55a77609db839258e3c1f6db7490a70 (diff)
downloadwix-b2e187154d8c89954a8659c3bd19c3dc89fdfbce.tar.gz
wix-b2e187154d8c89954a8659c3bd19c3dc89fdfbce.tar.bz2
wix-b2e187154d8c89954a8659c3bd19c3dc89fdfbce.zip
Remove serialization classes and add Row.IsColumnNull.
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/Row.cs')
-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 }