C# Class FP.Core.Ints

Static methods for generating sequences of ints and other convenience methods.
Afficher le fichier Open project: lukesandberg/PexFaultLocalization

Méthodes publiques

Méthode Description
From ( int start ) : IEnumerable

Generates a sequence of integral numbers starting with a specified number.

From ( int start, int step ) : IEnumerable

Generates a sequence of integral numbers starting with a specified number with a specified step.

Range ( int start, int end ) : IEnumerable

Generates a sequence of integral numbers starting and ending with a specified number.

Range ( int start, int end, int step ) : IEnumerable

Generates a sequence of integral numbers starting and ending with a specified number with a specified step.

Times ( this self, System.Action action ) : void

Performs an action several times.

Method Details

From() public static méthode

Generates a sequence of integral numbers starting with a specified number.
public static From ( int start ) : IEnumerable
start int The value of the first integer in the sequence.
Résultat IEnumerable

From() public static méthode

Generates a sequence of integral numbers starting with a specified number with a specified step.
if equals 0. ///
public static From ( int start, int step ) : IEnumerable
start int The value of the first integer in the sequence.
step int The difference between two consequent elements of the /// sequence.
Résultat IEnumerable

Range() public static méthode

Generates a sequence of integral numbers starting and ending with a specified number.
public static Range ( int start, int end ) : IEnumerable
start int The value of the first integer in the sequence.
end int The value of the last integer in the sequence.
Résultat IEnumerable

Range() public static méthode

Generates a sequence of integral numbers starting and ending with a specified number with a specified step.
if equals 0 /// or has a different sign from - .
public static Range ( int start, int end, int step ) : IEnumerable
start int The value of the first integer in the sequence.
end int The value of the last integer in the sequence.
step int The difference between two consequent elements of the /// sequence.
Résultat IEnumerable

Times() public static méthode

Performs an action several times.
public static Times ( this self, System.Action action ) : void
self this The number of times.
action System.Action The action.
Résultat void