| DecimalTypeHelperRange Method (Decimal, Decimal, Boolean, Decimal, Boolean) |
Adds a chunk of numeric values
Namespace:
SmartTests.Ranges
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax public static INumericType<decimal> Range(
this decimal _,
decimal min,
bool minIncluded,
decimal max,
bool maxIncluded
)
<ExtensionAttribute>
Public Shared Function Range (
_ As Decimal,
min As Decimal,
minIncluded As Boolean,
max As Decimal,
maxIncluded As Boolean
) As INumericType(Of Decimal)
public:
[ExtensionAttribute]
static INumericType<Decimal>^ Range(
Decimal _,
Decimal min,
bool minIncluded,
Decimal max,
bool maxIncluded
)
[<ExtensionAttribute>]
static member Range :
_ : decimal *
min : decimal *
minIncluded : bool *
max : decimal *
maxIncluded : bool -> INumericType<decimal>
Parameters
- _
- Type: SystemDecimal
A decimal we do not care about, except to know to create a INumericTypeT for
decimal.
- min
- Type: SystemDecimal
The min value (included) of the chunk. - minIncluded
- Type: SystemBoolean
true to include min, false otherwise. - max
- Type: SystemDecimal
The max value (included) of the chunk. - maxIncluded
- Type: SystemBoolean
true to include max, false otherwise.
Return Value
Type:
INumericTypeDecimalReturn a new
INumericTypeT for decimal so that adding chunks can be chained.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Decimal. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also