This commit is contained in:
CortexCore
2023-06-05 16:25:06 +08:00
parent 9027120bb8
commit 4565ff2e35
2947 changed files with 0 additions and 0 deletions

19
Core/Extensions/Int.cs Normal file
View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BITKit
{
public static partial class Extensions
{
public static void ForEach(this int self,Action<int> action)
{
for (int i = 0; i < self; i++)
{
action.Invoke(i);
}
}
}
}