From f4b129a9039f54cff0ac315b39adcb17c8528ae8 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 30 May 2020 14:27:17 -0700 Subject: Add Row.CopyTo() --- src/WixToolset.Data/WindowsInstaller/Row.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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 @@ -236,6 +236,18 @@ namespace WixToolset.Data.WindowsInstaller return identical; } + /// + /// Copies this row to the target row. + /// + /// Row to copy data to. + public void CopyTo(Row target) + { + for (var i = 0; i < this.Fields.Length; i++) + { + target[i] = this[i]; + } + } + /// /// Returns a string representation of the Row. /// -- cgit v1.2.3-55-g6feb