src/Orleans.Core/Runtime/RingRange.cs
/// <summary>
/// Gets the contiguous sub-ranges represented by the provided range.
/// </summary>
/// <param name="range">The range.</param>
/// <returns>The contiguous sub-ranges represented by the provided range.</returns>
Gets the contiguous sub-ranges represented by the provided range.
Gets the contiguous sub - ranges represented by the provided range .
public static IEnumerable<ISingleRange> GetSubRanges(IRingRange range) => range switch
        {
            ISingleRange single => new[] { single },
            GeneralMultiRange m => m.Ranges,
            _ => throw new NotSupportedException(),
        };
public static IEnumerable < ISingleRange > GetSubRanges ( IRingRange range ) => range switch { ISingleRange single => new [ ] { single } , GeneralMultiRange m => m . Ranges , _ => throw new NotSupportedException ( ) , } ;
Gets the contiguous sub-ranges represented by the provided range.
Gets the contiguous sub - ranges represented by the provided range .
The contiguous sub-ranges represented by the provided range.
The contiguous sub - ranges represented by the provided range .
range
IRingRange
None