This commit is contained in:
2022-03-25 19:32:32 +00:00
parent e3848306f1
commit c5222bb9d2
2 changed files with 19 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace AyaNova.Util
{
internal static class ImportUpdateObject
internal static class ImportUtil
{
/// <summary>
/// Copies the data of one object to another. The target object 'pulls' properties of the first.
@@ -20,7 +20,7 @@ namespace AyaNova.Util
/// <param name="propertiesToUpdate">A list of properties that should be copied</param>
public static void Update(object source, object target, List<string> propertiesToUpdate)
{
MemberInfo[] miT = target.GetType().GetMembers(BindingFlags.Public | BindingFlags.Instance);
foreach (MemberInfo Field in miT)
{
@@ -55,6 +55,11 @@ namespace AyaNova.Util
}
public static string GetImportTag()
{
return "z-import-" + DateTime.Now.ToString("yyyyMMddHHmmss");
}
}//eoc
}//eons