Conditionally runs a specific Gear<TResult> and returns it result depending of the logical value of the given IsTrueThat predicate.

Namespace: Keystone.Clockwork
Assembly: Keystone.Clockwork (in Keystone.Clockwork.dll)

public class If<TResult> : Gear<TResult>
This language is not supported or no code example is available.

Type Parameters

TResult

The result type.

Return Value

The running result of the executed Gear<TResult> according to the value of IsTrueThat predicate.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono