Table of Contents

Condition Method

Definition

Namespace
Cuemon.Threading
Assemblies
Cuemon.Threading.dll
Source
src/Cuemon.Threading/AdvancedParallelFactory.cs

Condition<T>(T, RelationalOperator, T)

Provides a default implementation of a for-condition callback method.

public static bool Condition<T>(T current, RelationalOperator relational, T repeats) where T : struct, IComparable<T>, IEquatable<T>, IConvertible

Parameters

current T

The current value of the counter in a for-loop.

relational RelationalOperator

One of the enumeration values that specifies the rules to apply as the relational operator for left-hand operand current and right-hand operand repeats.

repeats T

The amount of repeats to do according to the rules specified by relational.

Returns

bool

true if current does not meet the condition of relational and repeats; otherwise false.

Type Parameters

T

The type of the counter in a for-loop.