From d738137e7585e06cb97f3ae2921c51a3757dd847 Mon Sep 17 00:00:00 2001 From: jbtule Date: Thu, 24 Jan 2019 15:19:30 -0600 Subject: [PATCH] Fix CopyRecordTo, add sourcelink --- DotNetDBF.Enumerable/DotNetDBF.Enumerable.csproj | 8 +++++--- DotNetDBF.Enumerable/Enumerable.cs | 11 +++++++++-- DotNetDBF/DotNetDBF.csproj | 8 ++++++-- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/DotNetDBF.Enumerable/DotNetDBF.Enumerable.csproj b/DotNetDBF.Enumerable/DotNetDBF.Enumerable.csproj index 0f5cfc6..eadefb1 100644 --- a/DotNetDBF.Enumerable/DotNetDBF.Enumerable.csproj +++ b/DotNetDBF.Enumerable/DotNetDBF.Enumerable.csproj @@ -8,7 +8,7 @@ Ekon Benefits For dotnetdbf projects using .net 4.0 projects this is an enumeration framework in which makes it easy to use Linq to Objects. lgpl - http://code.google.com/p/dotnetdbf/ + https://github.com/ekonbenefits/dotnetdbf clipper xbase dbf linq LGPL-2.1-or-later https://github.com/ekonbenefits/dotnetdbf @@ -16,7 +16,9 @@ gits True True - 6.0.0.1 + snupkg + true + 6.0.0.2 True True @@ -24,7 +26,7 @@ - + diff --git a/DotNetDBF.Enumerable/Enumerable.cs b/DotNetDBF.Enumerable/Enumerable.cs index 59168c0..8642dd9 100644 --- a/DotNetDBF.Enumerable/Enumerable.cs +++ b/DotNetDBF.Enumerable/Enumerable.cs @@ -128,8 +128,15 @@ public static void CopyRecordTo(this IDBFInterceptor original, IDBFInterceptor d { foreach (var fieldName in Dynamitey.Dynamic.GetMemberNames(dest, true)) { - var val = Dynamic.InvokeGet(original, fieldName); - Dynamic.InvokeSet(dest, fieldName, val); + try + { + var val = Dynamic.InvokeGet(original, fieldName); + Dynamic.InvokeSet(dest, fieldName, val); + } + catch + { + // ignored + } } } diff --git a/DotNetDBF/DotNetDBF.csproj b/DotNetDBF/DotNetDBF.csproj index c9b9fae..5ad3872 100644 --- a/DotNetDBF/DotNetDBF.csproj +++ b/DotNetDBF/DotNetDBF.csproj @@ -3,7 +3,7 @@ net35;netstandard1.3;netstandard2.0 True sn.snk - 6.0.0.1 + 6.0.0.2 Ekon Benefits Copyright 2009-2017 This is a basic file parser for reading and writing xBase DBF files particularlly Clipper. Code originally derived from javadbf. @@ -17,6 +17,8 @@ True True LGPL-2.1-or-later + snupkg + true @@ -24,7 +26,9 @@ - + + +