Table of Contents

Class LinearHelper

Namespace
SunamoNumbers
Assembly
SunamoNumbers.dll

Provides methods for generating sequential number lists and ranges.

public class LinearHelper
Inheritance
LinearHelper
Inherited Members
Extension Methods

Methods

GetListFromTo(int, int)

Generates a list of integers from the start value to the end value (inclusive).

public static List<int> GetListFromTo(int from, int to)

Parameters

from int

The start value.

to int

The end value (inclusive).

Returns

List<int>

GetListFromTo<T>(int, int)

Generates a typed list of numbers from the start value to the end value (inclusive).

public static List<T> GetListFromTo<T>(int from, int to)

Parameters

from int

The start value.

to int

The end value (inclusive).

Returns

List<T>

Type Parameters

T

The target numeric type.

GetStringListFromTo(int, int)

Generates a list of string representations of numbers from the start value to the end value (inclusive).

public static List<string> GetStringListFromTo(int from, int to)

Parameters

from int

The start value.

to int

The end value (inclusive).

Returns

List<string>