Skip to content

Commit 4db6d3a

Browse files
committed
Remove unnecessary inlining hints from ArrayViewExtensions
1 parent 8fe4c19 commit 4db6d3a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Ramstack.Structures/Collections/ArrayViewExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public static class ArrayViewExtensions
1212
/// <returns>
1313
/// An <see cref="ArrayView{T}"/> representing the array.
1414
/// </returns>
15-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1615
public static ArrayView<T> AsView<T>(this T[]? value) =>
1716
new(value ?? []);
1817

@@ -24,7 +23,6 @@ public static ArrayView<T> AsView<T>(this T[]? value) =>
2423
/// <returns>
2524
/// An <see cref="ArrayView{T}"/> representing the array.
2625
/// </returns>
27-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
2826
public static ArrayView<T> AsView<T>(this T[]? value, int index) =>
2927
new(value ?? [], index);
3028

@@ -37,7 +35,6 @@ public static ArrayView<T> AsView<T>(this T[]? value, int index) =>
3735
/// <returns>
3836
/// An <see cref="ArrayView{T}"/> representing the array.
3937
/// </returns>
40-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
4138
public static ArrayView<T> AsView<T>(this T[]? value, int index, int count) =>
4239
new(value ?? [], index, count);
4340

0 commit comments

Comments
 (0)