ListExtensions.GenerateListChanges
Declaration#
public static List<T> GenerateListChanges(List<T> current, List<T> original)Parameters#
| Name | Description |
|---|---|
| current | List containing current data |
| original | List 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); }}