ForEach
This commit is contained in:
parent
6602744325
commit
350ad15c40
@ -50,10 +50,6 @@
|
||||
<Compile Include="Network\OldNetwork.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Hasher.cs" />
|
||||
<Compile Include="Reactive\ReactiveProvider.cs" />
|
||||
<Compile Include="Reactive\ReactiveStream.cs" />
|
||||
<Compile Include="Reactive\ReactiveListener.cs" />
|
||||
<Compile Include="Reactive\ReactiveWorker.cs" />
|
||||
<Compile Include="SafeMutex.cs" />
|
||||
<Compile Include="SecureRandom.cs" />
|
||||
<Compile Include="SimpleConverter.cs" />
|
||||
|
||||
@ -146,5 +146,11 @@ namespace DTLib
|
||||
}
|
||||
|
||||
public static void Throw(this Exception ex) => throw ex;
|
||||
|
||||
public static void ForEach<T>(this IEnumerable<T> en, Action<T> act)
|
||||
{
|
||||
foreach(T elem in en)
|
||||
act(elem);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user