Skip to content

ClosedRangeExtensions

ClassChartGuruChartGuru
public static class ClosedRangeExtensions

Extension methods for creating ClosedRange instances.

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 Description
lowerBound System.Single
upperBound System.Single

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

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 Description
lowerBound System.Double
upperBound System.Double

Returns

ChartGuru.ClosedRange{System.Double} — No return description is available.

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 Description
lowerBound System.Int32
upperBound System.Int32

Returns

ChartGuru.ClosedRange{System.Int32} — No return description is available.