using System.Collections.Generic; namespace PkmnLibSharp.Utils { internal static class MiscExtensions { internal static int IndexOf(this IReadOnlyList list, T element) { for (int i = 0; i < list.Count; i++) { if (Equals(list[i], element)) { return i; } } return -1; } } }