src\Compilers\Core\Portable\Collections\TemporaryArrayExtensions.cs (13)
14/// Gets a mutable reference to a <see cref="TemporaryArray{T}"/> stored in a <c>using</c> variable.
17/// <para>This supporting method allows <see cref="TemporaryArray{T}"/>, a non-copyable <see langword="struct"/>
38public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array)
43public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate)
54public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate)
68public static T? SingleOrDefault<T>(this in TemporaryArray<T> array, Func<T, bool> predicate)
89public static T? SingleOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
110public static T? FirstOrDefault<T>(this in TemporaryArray<T> array)
113public static T? FirstOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
124public static int IndexOf<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
138public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)
147public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)