Class RangeExtensions
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Core.dll
Extension methods for Range<T>.
public static class RangeExtensions
- Inheritance
-
RangeExtensions
- Inherited Members
Methods
Length(Range<byte>)
Get length of the range.
public static int Length(this Range<byte> range)
Parameters
Returns
- int
Length of the range.
Length(Range<DateTime>)
Get length of the range.
public static TimeSpan Length(this Range<DateTime> range)
Parameters
Returns
- TimeSpan
Length of the range.
Length(Range<double>)
Get length of the range.
public static double Length(this Range<double> range)
Parameters
Returns
- double
Length of the range.
Length(Range<short>)
Get length of the range.
public static int Length(this Range<short> range)
Parameters
Returns
- int
Length of the range.
Length(Range<int>)
Get length of the range.
public static uint Length(this Range<int> range)
Parameters
Returns
- uint
Length of the range.
Length(Range<long>)
Get length of the range.
public static ulong Length(this Range<long> range)
Parameters
Returns
- ulong
Length of the range.
Length(Range<sbyte>)
Get length of the range.
public static int Length(this Range<sbyte> range)
Parameters
Returns
- int
Length of the range.
Length(Range<float>)
Get length of the range.
public static float Length(this Range<float> range)
Parameters
Returns
- float
Length of the range.
Length(Range<ushort>)
Get length of the range.
public static int Length(this Range<ushort> range)
Parameters
Returns
- int
Length of the range.
Length(Range<uint>)
Get length of the range.
public static uint Length(this Range<uint> range)
Parameters
Returns
- uint
Length of the range.
Length(Range<ulong>)
Get length of the range.
public static ulong Length(this Range<ulong> range)
Parameters
Returns
- ulong
Length of the range.
Offsets(Range<byte>, int)
Offset the range.
public static Range<byte> Offsets(this Range<byte> range, int offset)
Parameters
Returns
Offsets(Range<DateTime>, TimeSpan)
Offset the range.
public static Range<DateTime> Offsets(this Range<DateTime> range, TimeSpan offset)
Parameters
Returns
Offsets(Range<double>, double)
Offset the range.
public static Range<double> Offsets(this Range<double> range, double offset)
Parameters
Returns
Offsets(Range<short>, int)
Offset the range.
public static Range<short> Offsets(this Range<short> range, int offset)
Parameters
Returns
Offsets(Range<int>, long)
Offset the range.
public static Range<int> Offsets(this Range<int> range, long offset)
Parameters
Returns
Offsets(Range<long>, long)
Offset the range.
public static Range<long> Offsets(this Range<long> range, long offset)
Parameters
Returns
Offsets(Range<sbyte>, int)
Offset the range.
public static Range<sbyte> Offsets(this Range<sbyte> range, int offset)
Parameters
Returns
Offsets(Range<float>, float)
Offset the range.
public static Range<float> Offsets(this Range<float> range, float offset)
Parameters
Returns
Offsets(Range<ushort>, int)
Offset the range.
public static Range<ushort> Offsets(this Range<ushort> range, int offset)
Parameters
Returns
Offsets(Range<uint>, long)
Offset the range.
public static Range<uint> Offsets(this Range<uint> range, long offset)
Parameters
Returns
Offsets(Range<ulong>, long)
Offset the range.
public static Range<ulong> Offsets(this Range<ulong> range, long offset)
Parameters
Returns
ToRange<T>(T, T)
Create range from this value.
public static Range<T> ToRange<T>(this T value, T another) where T : struct, IComparable<T>
Parameters
value
TValue.
another
TAnother value.
Returns
- Range<T>
Type Parameters
T