This commit is contained in:
Timerix 2021-10-10 22:50:54 +03:00
parent 6602744325
commit 350ad15c40
2 changed files with 6 additions and 4 deletions

View File

@ -50,10 +50,6 @@
<Compile Include="Network\OldNetwork.cs" /> <Compile Include="Network\OldNetwork.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Hasher.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="SafeMutex.cs" />
<Compile Include="SecureRandom.cs" /> <Compile Include="SecureRandom.cs" />
<Compile Include="SimpleConverter.cs" /> <Compile Include="SimpleConverter.cs" />

View File

@ -146,5 +146,11 @@ namespace DTLib
} }
public static void Throw(this Exception ex) => throw ex; 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);
}
} }
} }