Skip to main content

ListExtensions.GenerateListChanges

Declaration#

public static List<T> GenerateListChanges(List<T> current, List<T> original)

Parameters#

NameDescription
currentList containing current data
originalList of unmodified data

Description#

Generate a list containing only changed items.
Matched items are entered as nulls.
A full match returns as null.

Usage#

Example
using NullSave.GDTK;using System.Collections.Generic;using UnityEngine;
public class Example : MonoBehaviour{    public void ExampleMethod(List<IMatchComparable> originalList, List<IMatchComparable> currentList)    {        List<IMatchComparable> result = ListExtensions.GenerateListChanges(currentList, originalList);    }}