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

NameType
lowerBoundSystem.Single
upperBoundSystem.Single

Returns

ChartGuru.ClosedRange{System.Single}

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

NameType
lowerBoundSystem.Double
upperBoundSystem.Double

Returns

ChartGuru.ClosedRange{System.Double}

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

NameType
lowerBoundSystem.Int32
upperBoundSystem.Int32

Returns

ChartGuru.ClosedRange{System.Int32}