Extensions for generic il2cpp lists
public static class Il2CppGenericsExt
Inheritance System.Object Il2CppGenericsExt
Return a duplicate of this List
public static List<T> Duplicate<T>(this List<T> list);
T
list Il2CppSystem.Collections.Generic.List
Il2CppSystem.Collections.Generic.List
Return a duplicate of this list as type TCast
public static List<TCast> DuplicateAs<TSource,TCast>(this List<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
list Il2CppSystem.Collections.Generic.List
Il2CppSystem.Collections.Generic.List
Gets the item at the specified index. Circumvents "ambiguous indexer" warnings
public static T Get<T>(this List<T> list, int index);
T
list Il2CppSystem.Collections.Generic.List
index System.Int32
Return the first item of type TCast
public static TCast GetItemOfType<TSource,TCast>(this List<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want
list Il2CppSystem.Collections.Generic.List
Return all Items of type TCast
public static List<TCast> GetItemsOfType<TSource,TCast>(this List<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Items you want
list Il2CppSystem.Collections.Generic.List
Il2CppSystem.Collections.Generic.List
Check if this has any items of type TCast
public static bool HasItemsOfType<TSource,TCast>(this List<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type you're checking for
list Il2CppSystem.Collections.Generic.List
Return this with the first Item of type TCast removed
public static List<TSource> RemoveItem<TSource,TCast>(this List<TSource> list, TCast itemToRemove)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want to remove
list Il2CppSystem.Collections.Generic.List
itemToRemove TCast
The specific Item to remove
Il2CppSystem.Collections.Generic.List
Return this with the first Item of type TCast removed
public static List<TSource> RemoveItemOfType<TSource,TCast>(this List<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want to remove
list Il2CppSystem.Collections.Generic.List
Il2CppSystem.Collections.Generic.List
Return this with all Items of type TCast removed
public static List<TSource> RemoveItemsOfType<TSource,TCast>(this List<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Items that you want to remove
list Il2CppSystem.Collections.Generic.List
Il2CppSystem.Collections.Generic.List
Return as an Array
public static T[] ToArray<T>(this List<T> il2CppList);
T
il2CppList Il2CppSystem.Collections.Generic.List
Return as Il2CppReferenceArray
public static Il2CppReferenceArray<T> ToIl2CppReferenceArray<T>(this List<T> il2CppList)
where T : Object;
T
il2CppList Il2CppSystem.Collections.Generic.List
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return as System.List
public static System.Collections.Generic.List<T> ToList<T>(this List<T> il2CppList);
T
il2CppList Il2CppSystem.Collections.Generic.List
System.Collections.Generic.List<T>
Return as LockList
public static LockList<T> ToLockList<T>(this List<T> il2CppList);
T
il2CppList Il2CppSystem.Collections.Generic.List