DotNext by Roman Sakno

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

 Func

public static class Func
Provides extension methods for delegate Func<T> and predefined functions.
public static Converter<I, O> AsConverter<I, O>(this Func<I, O> function)

Converts Func<T, U> into Converter<T, U>.

public static Predicate<T> AsPredicate<T>(this Func<T, bool> predicate)

Converts Func<T, U> into predicate.

public static Func<I, O> Identity<I, O>() where I : O

The function which returns input argument without any modifications.

public static Func<T, T> Identity<T>()

The converter which returns input argument without any modifications.

public static Func<T, bool> IsNotNull<T>()

Returns predicate checking that input argument is not null.

public static Func<T, bool> IsNull<T>()

Returns predicate implementing nullability check.