File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ namespace SpanExtensions
44{
55 public static partial class ReadOnlySpanExtensions
66 {
7- #if ! NET8_0_OR_GREATER // support for this method has been added in .Net 8. Just include it for backward-compatibility.
8-
97 /// <summary>
108 /// Returns the number of elements in a <see cref="ReadOnlySpan{T}"/>.
119 /// </summary>
@@ -17,7 +15,7 @@ public static int Count<T>(this ReadOnlySpan<T> source)
1715 {
1816 return source . Length ;
1917 }
20- #endif
18+
2119 /// <summary>
2220 /// Returns a number that represents how many elements in the specified sequence satisfy a condition.
2321 /// </summary>
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ namespace SpanExtensions
44{
55 public static partial class SpanExtensions
66 {
7- #if ! NET8_0_OR_GREATER // support for this method has been added in .Net 8. Just include it for backward-compatibility.
87 /// <summary>
98 /// Returns the number of elements in a <see cref="Span{T}"/>.
109 /// </summary>
@@ -16,7 +15,7 @@ public static int Count<T>(this Span<T> source)
1615 {
1716 return ReadOnlySpanExtensions . Count < T > ( source ) ;
1817 }
19- #endif
18+
2019 /// <summary>
2120 /// Returns a number that represents how many elements in the specified sequence satisfy a condition.
2221 /// </summary>
You can’t perform that action at this time.
0 commit comments