We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cad21e + 39b5a77 commit 986fbaeCopy full SHA for 986fbae
Ramstack.Structures/Collections/ArrayView`1.cs
@@ -37,7 +37,7 @@ namespace Ramstack.Collections;
37
public bool IsDefault => _array is null;
38
39
/// <inheritdoc cref="IReadOnlyList{T}.this"/>
40
- public ref T this[int index]
+ public ref readonly T this[int index]
41
{
42
[MethodImpl(MethodImplOptions.AggressiveInlining)]
43
get
@@ -202,7 +202,7 @@ public ReadOnlyMemory<T> AsMemory() =>
202
/// A reference to the element of the <see cref="ArrayView{T}"/> at index zero.
203
/// </returns>
204
205
- public ref T GetPinnableReference()
+ public ref readonly T GetPinnableReference()
206
207
// To match the behavior of ReadOnlySpan<T>
208
0 commit comments