-Subproject commit 7668f9bab6c688eef882bfd0b74dd5e86a9ddc11
+Subproject commit 10b23d348821eeebbfe1db0b306e2d764655b4ed
../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/CompilerScope.Storage.cs
../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/CompilerScope.cs
../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/ILGen.cs
-../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/KeyedQueue.cs
+../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/KeyedStack.cs
../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/LabelInfo.cs
../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/LambdaCompiler.Address.cs
../../../external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Compiler/LambdaCompiler.Binary.cs
return new ReadOnlyCollection<T> (array);
}
+ public static void Fill<T> (T[] array, T value)
+ {
+ if (array == null)
+ throw new ArgumentNullException (nameof (array));
+
+ for (int i = 0; i < array.Length; i++)
+ array [i] = value;
+ }
+
+ public static void Fill<T> (T[] array, T value, int startIndex, int count)
+ {
+ if (array == null)
+ throw new ArgumentNullException (nameof (array));
+
+ if (startIndex < 0 || startIndex > array.Length)
+ throw new ArgumentOutOfRangeException (nameof (startIndex));
+
+ if (count < 0 || startIndex > array.Length - count)
+ throw new ArgumentOutOfRangeException (nameof (count));
+
+ for (int i = startIndex; i < startIndex + count; i++)
+ array [i] = value;
+ }
+
public static T Find<T> (T [] array, Predicate<T> match)
{
if (array == null)
_array[_size] = default(T); // Free memory quicker.
return item;
}
+
+#if MONO
+ public bool TryPop(out T result)
+ {
+ if (_size == 0)
+ {
+ result = default(T);
+ return false;
+ }
+
+ _version++;
+ result = _array[--_size];
+ _array[_size] = default(T); // Free memory quicker.
+ return true;
+ }
+#endif
// Pushes an item to the top of the stack.
//