ListExtensions.Matches
Declaration#
public static bool Matches(IList<T> self, IList<T> other)Parameters#
| Name | Description |
|---|---|
| self | List |
| other | List to compare |
Description#
Check if two lists are identical
Usage#
Example
using NullSave.GDTK;using System.Collections.Generic;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod() { List<int> list1 = new List<int>(); list1.Add(1); list1.Add(2); list1.Add(3); list1.Add(5); list1.Add(8); List<int> list2 = new List<int>(); list2.Add(2); list2.Add(8); bool result = list1.Contains(list2); }}