Table of Contents

Class RangeExtensions

Namespace
Garyon.Extensions
Assembly
Garyon.dll

Provides extensions for the Range struct.

public static class RangeExtensions
Inheritance
RangeExtensions
Inherited Members

Methods

GetStartAndEnd(Range, int, out int, out int)

Gets the start and the end indices of the range, given the specified length.

public static void GetStartAndEnd(this Range range, int length, out int start, out int end)

Parameters

range Range

The range.

length int

The length of the collection.

start int

The start of the range for the given length.

end int

The end of the range for the given length.