Condition Method
Definition
- Assemblies
- Cuemon.Threading.dll
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
currentTThe current value of the counter in a for-loop.
relationalRelationalOperatorOne of the enumeration values that specifies the rules to apply as the relational operator for left-hand operand
currentand right-hand operandrepeats.repeatsTThe amount of repeats to do according to the rules specified by
relational.
Returns
- bool
trueifcurrentdoes not meet the condition ofrelationalandrepeats; otherwisefalse.
Type Parameters
TThe type of the counter in a for-loop.