Executes a code block if the given predicate is true.

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

public static bool IfTrue( 
this bool predicate
Action @do 
)
This language is not supported or no code example is available.

Parameters

predicate

Type: bool

The predicate to be tested for its boolean value.

@do

Type: Action

Return Value

The predicate evaluation result to apply further processing via method chaining.

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