Net.Like.Xue.Tokyo/Assets/BITKit/Core/Extensions/Int.cs

15 lines
287 B
C#
Raw Normal View History

2024-11-03 16:42:23 +08:00
using System;
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);
}
}
}
}