Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiplicationTable"/> class.
 /// </summary>
 /// <param name="count">The number of primes used as the size of the table.</param>
 /// <param name="options">Options for the prime generator used by the table.</param>
 public MultiplicationTable(int count, PrimeGeneratorOptions options)
 {
     this.count   = count;
     this.options = options;
 }
 internal AsyncEnumerator(PrimeGeneratorOptions options = PrimeGeneratorOptions.None, CancellationToken cancellationToken = default)
 {
     this.options           = options;
     this.cancellationToken = cancellationToken;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrimeGenerator"/> class.
 /// </summary>
 /// <param name="options">Options for generating primes.</param>
 public PrimeGenerator(PrimeGeneratorOptions options = PrimeGeneratorOptions.None) =>
 this.options = options;