public PrimeNumbers(OutputSettings desiredSettings) { primes = new List<int>(); classLogger = null; errors = null; if ((desiredSettings & OutputSettings.ErrorLogOn) == 0) { errors = new List<ErrorBase>(); } if (((desiredSettings & OutputSettings.ConsoleOutputOn) == 0) || ((desiredSettings & OutputSettings.LogFileOn)==0)) { classLogger = new DataReporter(); if ((desiredSettings & OutputSettings.LogFileOn) == 0) { classLogger.LogOn = true; } if ((desiredSettings & OutputSettings.ConsoleOutputOn) == 0) { classLogger.ConsoleOn = true; } } }
public PrimeNumbers() { primes = new List<int>(); classLogger = null; errors = null; }