Add Row.CopyTo()
Rob Mensching committed
May 30, 2020 at 14:27 UTC
f4b129a9039f54cff0ac315b39adcb17c8528ae8
1 file changed
+12
src/WixToolset.Data/WindowsInstaller/Row.cs
+12
@@ -236,6 +236,18 @@ namespace WixToolset.Data.WindowsInstaller
236
return identical;
237
}
238
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>
252
/// Returns a string representation of the Row.
253
/// </summary>