Represents an Int32 range with minimum and maximum values
IntRange
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | 这个构造函数之中会自动求出最大值和最小值 |
| ToString | 1 | |
| IsInside | 2 | Check if the specified range is inside this range |
| IsOverlapping | 1 | Check if the specified range overlaps with this range |
| ScaleMapping | 1 | Transform a numeric value in this IntRange into target numeric range: valueRange. |
| GenericEnumerator | 1 | 枚举出这个数值范围内的所有整数值,步长为1 |
| GetMinMax | 1 | |
| op_Implicit | 1 | |
| MinMax | 1 |
03 Properties
04 Members
Int32, Int32)Initializes a new instance of the IntRange class
| Name | Type | Description |
|---|---|---|
min | Int32 | Minimum value of the range |
max | Int32 | Maximum value of the range |
IEnumerable(Of Int32))这个构造函数之中会自动求出最大值和最小值
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of Int32) | - |
Int32)Check if the specified value **x** is inside this range
| Name | Type | Description |
|---|---|---|
x | Int32 | Value to check |
True if the specified value is inside this range or false otherwise.
Check if the specified range is inside this range
| Name | Type | Description |
|---|---|---|
range | IntRange | Range to check |
True if the specified range is inside this range or false otherwise.
Check if the specified range overlaps with this range
| Name | Type | Description |
|---|---|---|
range | IntRange | Range to check for overlapping |
True if the specified range overlaps with this range or false otherwise.
Int32, IntRange)Transform a numeric value in this IntRange into target numeric range: **valueRange**. (将当前的范围内的一个实数映射到另外的一个范围内的实数区间之中)
| Name | Type | Description |
|---|---|---|
x# | Int32 | - |
valueRange | IntRange | - |
枚举出这个数值范围内的所有整数值,步长为1
Minimum value
Maximum value
Length of the range (deffirence between maximum and minimum values)
String)IEnumerable(Of Int32))