Initial commit

This commit is contained in:
github-classroom[bot] 2025-04-29 15:03:45 +00:00 committed by GitHub
commit b087f272b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 5345 additions and 0 deletions

View file

@ -0,0 +1,33 @@
using Numbers.NumberFactory.NumberImpls;
namespace Numbers.NumberFactory;
/// <summary>
/// A factory that creates <see cref="INumbers" /> instances
/// </summary>
public static class Factory
{
/// <summary>
/// Creates an <see cref="INumbers" /> instance for the given <paramref name="type" />
/// </summary>
/// <param name="type">Number factory type to create</param>
/// <param name="lowerBound">Lower bound of the number range</param>
/// <param name="upperBound">Upper bound of the number range</param>
/// <returns>Appropriate instance or null if requested type is unknown</returns>
public static INumbers Create(NumberType type, long lowerBound, long upperBound)
{
// TODO
return null!;
}
}
/// <summary>
/// Possible number factory types
/// </summary>
public enum NumberType
{
Even,
Odd,
Square,
Prime
}