@@ -31,7 +31,7 @@ internal static class ArrayExtensions
31
31
/// <exception cref="ArrayTypeMismatchException">
32
32
/// <paramref name="array"/> is covariant, and the array's type is not exactly <typeparamref name="T"/>[].
33
33
/// </exception>
34
- public static ReadOnlySpan < T > AsSpan < T > ( this T [ ] ? array , Index startIndex )
34
+ public static Span < T > AsSpan < T > ( this T [ ] ? array , Index startIndex )
35
35
{
36
36
#if NET
37
37
return MemoryExtensions . AsSpan ( array , startIndex ) ;
@@ -74,7 +74,7 @@ public static ReadOnlySpan<T> AsSpan<T>(this T[]? array, Index startIndex)
74
74
/// <exception cref="ArrayTypeMismatchException">
75
75
/// <paramref name="array"/> is covariant, and the array's type is not exactly <typeparamref name="T"/>[].
76
76
/// </exception>
77
- public static ReadOnlySpan < T > AsSpan < T > ( this T [ ] ? array , Range range )
77
+ public static Span < T > AsSpan < T > ( this T [ ] ? array , Range range )
78
78
{
79
79
#if NET
80
80
return MemoryExtensions . AsSpan ( array , range ) ;
@@ -116,7 +116,7 @@ public static ReadOnlySpan<T> AsSpan<T>(this T[]? array, Range range)
116
116
/// <exception cref="ArrayTypeMismatchException">
117
117
/// <paramref name="array"/> is covariant, and the array's type is not exactly <typeparamref name="T"/>[].
118
118
/// </exception>
119
- public static ReadOnlyMemory < T > AsMemory < T > ( this T [ ] ? array , Index startIndex )
119
+ public static Memory < T > AsMemory < T > ( this T [ ] ? array , Index startIndex )
120
120
{
121
121
#if NET
122
122
return MemoryExtensions . AsMemory ( array , startIndex ) ;
@@ -160,7 +160,7 @@ public static ReadOnlyMemory<T> AsMemory<T>(this T[]? array, Index startIndex)
160
160
/// <exception cref="ArrayTypeMismatchException">
161
161
/// <paramref name="array"/> is covariant, and the array's type is not exactly <typeparamref name="T"/>[].
162
162
/// </exception>
163
- public static ReadOnlyMemory < T > AsMemory < T > ( this T [ ] ? array , Range range )
163
+ public static Memory < T > AsMemory < T > ( this T [ ] ? array , Range range )
164
164
{
165
165
#if NET
166
166
return MemoryExtensions . AsMemory ( array , range ) ;
0 commit comments