ChartBinRange<T>
public readonly struct ChartBinRange<T> where T : IComparable<T>Range used to describe a histogram bin. Mirrors Swift Charts’ ChartBinRange.
Open-bound flags let callers express half-open intervals (the Swift convention is
lower-closed / upper-open, except for the final bin which is closed on both sides).
Fields
Section titled “Fields”
LowerBound
Section titled “LowerBound”public readonly T LowerBoundReturns
{T}
UpperBound
Section titled “UpperBound”public readonly T UpperBoundReturns
{T}
IsLowerOpen
Section titled “IsLowerOpen”public readonly bool IsLowerOpenReturns
System.Boolean
IsUpperOpen
Section titled “IsUpperOpen”public readonly bool IsUpperOpenReturns
System.Boolean
Constructors
Section titled “Constructors”
ChartBinRange(T, T, bool, bool)
Section titled “ChartBinRange(T, T, bool, bool)”public ChartBinRange(T lower, T upper, bool isLowerOpen = false, bool isUpperOpen = true)Creates an interval with independently inclusive or exclusive lower and upper boundaries.
Parameters
| Name | Type |
|---|---|
lower |
{T} |
upper |
{T} |
isLowerOpen |
System.Boolean |
isUpperOpen |
System.Boolean |
Methods
Section titled “Methods”
Contains(T)
Section titled “Contains(T)”public bool Contains(T value)Reports whether the value lies within both boundaries, honoring their open or closed state.
Parameters
| Name | Type |
|---|---|
value |
{T} |
Returns
System.Boolean
Equals(ChartBinRange)
Section titled “Equals(ChartBinRange)”public bool Equals(ChartBinRange<T> other)Parameters
| Name | Type |
|---|---|
other |
ChartGuru.ChartBinRange`1 |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32