private ItemResources(ReadOnlyArray <int> semaphoreIncrements) { SemaphoreIncrements = semaphoreIncrements; }
/// <summary> /// Converts the collection to a read-only array. /// </summary> /// <typeparam name="T">The type of array elements.</typeparam> /// <param name="collection">the collection of elements</param> /// <returns>an read only array instance containing the elements in the collection.</returns> public static ReadOnlyArray<T> ToReadOnlyArray<T>(this IEnumerable<T> collection) { Contract.RequiresNotNull(collection); return ReadOnlyArray<T>.From(collection); }
/// <inheritdoc /> public bool Equals(ReadOnlyArray <T> other) { return(m_array == other.m_array); }
/// <inheritdoc /> public bool Equals([AllowNull] ReadOnlyArray <T> other) { return(m_array == other.m_array); }