Skip to content

Commit d2dbe48

Browse files
committed
add polyfill for IEnumerable<T>.Index()
1 parent 69b6ea2 commit d2dbe48

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

OpenSkillSharp.Tests/OpenSkillSharp.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

OpenSkillSharp/OpenSkillSharp.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@
2525
<PackageReference Include="MathNet.Numerics" Version="5.0.0"/>
2626
</ItemGroup>
2727

28+
<ItemGroup>
29+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
30+
<_Parameter1>$(MSBuildProjectName).Tests</_Parameter1>
31+
</AssemblyAttribute>
32+
</ItemGroup>
33+
2834
</Project>

OpenSkillSharp/Util/Polyfills/EnumerablePolyfills.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// ReSharper disable once CheckNamespace
33
namespace System.Linq;
44

5-
internal static class EnumerableIndexPolyfill
5+
internal static class EnumerablePolyfills
66
{
77
/// <summary>Returns an enumerable that incorporates the element's index into a tuple.</summary>
88
/// <typeparam name="TSource">The type of the elements of <paramref name="source" />.</typeparam>

0 commit comments

Comments
 (0)