Skip to content

Instantly share code, notes, and snippets.

namespace Shared.Helpers;
public static class MergeHelper
{
public static void Merge<TCurrent, TToBe, TId>(
this IEnumerable<TCurrent> current,
IEnumerable<TToBe> toBe,
Func<TCurrent, TId> currentIdSelector,
Func<TToBe, TId> toBeIdSelector,
Action<TToBe>? onAdd = null,