Innovenergy_trunk/csharp/lib/Utils/Try/TrySync.cs

15 lines
221 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
namespace InnovEnergy.Lib.Utils.Try;
[Obsolete]
public partial class TrySync<R>
{
private Func<R> Func { get; }
internal TrySync(Func<R> func)
{
Func = func;
}
public R Throw() => Func();
}