Cuemon .NET Framework
Condition<T> Method

The type of the counter in a for-loop.
The current value of the counter in a for-loop.
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.
The amount of repeats to do according to the rules specified by relational.
Provides a default implementation of a for-condition callback method.
Syntax
'Declaration
 
Public Shared Function Condition(Of T As {New, IComparable(Of T), IEquatable(Of T), IConvertible, Struct})( _
   ByVal current As T, _
   ByVal relational As RelationalOperator, _
   ByVal repeats As T _
) As Boolean
public static bool Condition<T>( 
   T current,
   RelationalOperator relational,
   T repeats
)
where T: new(), IComparable<T>, IEquatable<T>, IConvertible, struct

Parameters

current
The current value of the counter in a for-loop.
relational
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
The amount of repeats to do according to the rules specified by relational.

Type Parameters

T
The type of the counter in a for-loop.

Return Value

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

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LoopUtility Class
LoopUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback