diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-05-30 14:27:17 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-05-30 14:46:40 -0700 |
| commit | f4b129a9039f54cff0ac315b39adcb17c8528ae8 (patch) | |
| tree | 837fef55b54b4294b3c681231870876427095f38 /src | |
| parent | 311dbab658184e603953791a075c776456226b95 (diff) | |
| download | wix-f4b129a9039f54cff0ac315b39adcb17c8528ae8.tar.gz wix-f4b129a9039f54cff0ac315b39adcb17c8528ae8.tar.bz2 wix-f4b129a9039f54cff0ac315b39adcb17c8528ae8.zip | |
Add Row.CopyTo()
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Data/WindowsInstaller/Row.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Row.cs b/src/WixToolset.Data/WindowsInstaller/Row.cs index af0a323e..8c847c5b 100644 --- a/src/WixToolset.Data/WindowsInstaller/Row.cs +++ b/src/WixToolset.Data/WindowsInstaller/Row.cs | |||
| @@ -237,6 +237,18 @@ namespace WixToolset.Data.WindowsInstaller | |||
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | /// <summary> | 239 | /// <summary> |
| 240 | /// Copies this row to the target row. | ||
| 241 | /// </summary> | ||
| 242 | /// <param name="target">Row to copy data to.</param> | ||
| 243 | public void CopyTo(Row target) | ||
| 244 | { | ||
| 245 | for (var i = 0; i < this.Fields.Length; i++) | ||
| 246 | { | ||
| 247 | target[i] = this[i]; | ||
| 248 | } | ||
| 249 | } | ||
| 250 | |||
| 251 | /// <summary> | ||
| 240 | /// Returns a string representation of the Row. | 252 | /// Returns a string representation of the Row. |
| 241 | /// </summary> | 253 | /// </summary> |
| 242 | /// <returns>A string representation of the Row.</returns> | 254 | /// <returns>A string representation of the Row.</returns> |
