This commit is contained in:
龙腾猫跃 committed 2026-04-22 03:49:32 +08:00
1 parent ff8cbe2ccc
commit 6e0c722be1
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ public static class EnumerableExtensions {
/// <summary>
/// 对集合的每个元素执行指定操作。
/// </summary>
public static IEnumerable<T> ForEach<T>(this IEnumerable<T> source, Action<T> action) {
public static IEnumerable<T> ForAll<T>(this IEnumerable<T> source, Action<T> action) {
foreach (T item in source) action(item);
return source;
}
+1
View File
@@ -29,6 +29,7 @@
<Using Include="System.Linq" />
<Using Include="System.Text" />
<Using Include="System.IO" />
<Using Include="System.Threading" />
<Using Include="System.Runtime.CompilerServices" />
<Using Include="System.Runtime.InteropServices" />
<Using Include="MeloongCore.Extensions" />