1
This commit is contained in:
19
Packages/Core/Extensions/Int.cs
Normal file
19
Packages/Core/Extensions/Int.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user