DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="5.0.2" />

.NET API 493,976 bytes

 ISupplier<T, TResult>

public interface ISupplier<T, TResult> : IFunctional<Func<T, TResult>>
Represents functional interface returning arbitrary value and accepting the single argument.
using DotNext.Runtime.CompilerServices; using System; using System.Runtime.CompilerServices; namespace DotNext { [NullableContext(2)] public interface ISupplier<in T, out TResult> : IFunctional<Func<T, TResult>> { [NullableContext(1)] TResult Invoke(T arg); Func<T, TResult> IFunctional<Func<T, TResult>>.ToDelegate() { return Invoke; } } }