| ByteTypeHelperRange Method (Byte, Byte, Boolean, Byte, Boolean) |
Adds a chunk of numeric values
Namespace:
SmartTests.Ranges
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax public static INumericType<byte> Range(
this byte _,
byte min,
bool minIncluded,
byte max,
bool maxIncluded
)
<ExtensionAttribute>
Public Shared Function Range (
_ As Byte,
min As Byte,
minIncluded As Boolean,
max As Byte,
maxIncluded As Boolean
) As INumericType(Of Byte)
public:
[ExtensionAttribute]
static INumericType<unsigned char>^ Range(
unsigned char _,
unsigned char min,
bool minIncluded,
unsigned char max,
bool maxIncluded
)
[<ExtensionAttribute>]
static member Range :
_ : byte *
min : byte *
minIncluded : bool *
max : byte *
maxIncluded : bool -> INumericType<byte>
Parameters
- _
- Type: SystemByte
A byte we do not care about, except to know to create a INumericTypeT for byte. - min
- Type: SystemByte
The min value (included) of the chunk. - minIncluded
- Type: SystemBoolean
true to include min, false otherwise. - max
- Type: SystemByte
The max value (included) of the chunk. - maxIncluded
- Type: SystemBoolean
true to include max, false otherwise.
Return Value
Type:
INumericTypeByteReturn a new
INumericTypeT for byte 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
Byte. 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