ListExtensions.GenerateStringListChanges
Declaration#
public static List<string> GenerateStringListChanges(List<string> current, List<string> 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<string> originalList, List<string> currentList) { List<string> result = ListExtensions.GenerateStringListChanges(currentList, originalList); }}