ClosedRangeExtensions
public static class ClosedRangeExtensionsExtension methods for creating ClosedRange instances.
Methods
Section titled “Methods”
To(float, float)
Section titled “To(float, float)”public static ClosedRange<float> To(this float lowerBound, float upperBound)Creates a ClosedRange from this value to the specified upper bound. Usage: 0f.To(100f) creates ClosedRange[0…100]
Parameters
| Name | Type |
|---|---|
lowerBound |
System.Single |
upperBound |
System.Single |
Returns
ChartGuru.ClosedRange{System.Single}
To(double, double)
Section titled “To(double, double)”public static ClosedRange<double> To(this double lowerBound, double upperBound)Creates a ClosedRange from this value to the specified upper bound. Usage: 0.0.To(100.0) creates ClosedRange[0…100]
Parameters
| Name | Type |
|---|---|
lowerBound |
System.Double |
upperBound |
System.Double |
Returns
ChartGuru.ClosedRange{System.Double}
To(int, int)
Section titled “To(int, int)”public static ClosedRange<int> To(this int lowerBound, int upperBound)Creates a ClosedRange from this value to the specified upper bound. Usage: 0.To(100) creates ClosedRange[0…100]
Parameters
| Name | Type |
|---|---|
lowerBound |
System.Int32 |
upperBound |
System.Int32 |
Returns
ChartGuru.ClosedRange{System.Int32}