HamBook – Rev 54
?pathlinks?
using System.Collections.Generic;
using System.Linq;
namespace HamBook.Utilities
{
public static class Mathematics
{
public static IEnumerable<int> GenerateRange(int min, int max, int step = 1)
{
foreach (var value in Enumerable.Range(min, max - min + 1).Where(i => (i - 0) % step == 0))
yield return value;
}
}
}
Generated by GNU Enscript 1.6.5.90.