Class EnumerableExtensions
- Namespace
- Vintagestory.API.Util
- Assembly
- VintagestoryAPI.dll
public static class EnumerableExtensions
- Inheritance
-
EnumerableExtensions
- Inherited Members
-
Methods
Foreach<T>(IEnumerable<T>, Action<T>)
public static void Foreach<T>(this IEnumerable<T> array, Action<T> onelement)
Parameters
array
IEnumerable<T>
onelement
Action<T>
Type Parameters
T
IndexOf<T>(IEnumerable<T>, ActionBoolReturn<T>)
public static int IndexOf<T>(this IEnumerable<T> source, ActionBoolReturn<T> onelem)
Parameters
source
IEnumerable<T>
onelem
ActionBoolReturn<T>
Returns
- int
Type Parameters
T
NearestDistance<T>(IEnumerable<T>, Func<T, double>)
public static double NearestDistance<T>(this IEnumerable<T> array, Func<T, double> getDistance)
Parameters
array
IEnumerable<T>
getDistance
Func<T, double>
Returns
- double
Type Parameters
T
Nearest<T>(IEnumerable<T>, Func<T, double>)
public static T Nearest<T>(this IEnumerable<T> array, Func<T, double> getDistance)
Parameters
array
IEnumerable<T>
getDistance
Func<T, double>
Returns
- T
Type Parameters
T