ListExtensions.Contains
Declaration#
public static bool Contains(IList<T> list, IList<T> subset)Parameters#
| Name | Description |
|---|---|
| list | List |
| subset | Subset of items to check for |
Description#
Check if a list contains all items in another list
Usage#
Example
using NullSave.GDTK;using System.Collections.Generic;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(List<IMatchComparable> target, List<IMatchComparable> other) { bool result = target.Matches(other); }}