src/GenFx/Validation/RequiredSelectionOperatorValidator.cs
/// <summary>
/// Returns a value indicating whether the genetic algorithm is configured with the required component.
/// </summary>
/// <param name="algorithmContext">The <see cref="GeneticAlgorithm"/> currently in context.</param>
/// <returns>true if the genetic algorithm is configured with the required component; otherwise, false.</returns>
Returns a value indicating whether the genetic algorithm is configured with the required component.
Returns a value indicating whether the genetic algorithm is configured with the required component .
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "0")]
        protected override bool HasRequiredComponent(GeneticAlgorithm algorithmContext)
        {
            if (algorithmContext is null)
            {
                throw new ArgumentNullException(nameof(algorithmContext));
            }
            return this.IsEquivalentType(algorithmContext.SelectionOperator);
        }
[ System . Diagnostics . CodeAnalysis . SuppressMessage ( " " , " " , MessageId = " " ) ] protected override bool HasRequiredComponent ( GeneticAlgorithm algorithmContext ) { if ( algorithmContext is null ) { throw new ArgumentNullException ( nameof ( algorithmContext ) ) ; } return this . IsEquivalentType ( algorithmContext . SelectionOperator ) ; }
Returns a value indicating whether the genetic algorithm is configured with the required component.
Returns a value indicating whether the genetic algorithm is configured with the required component .
true if the genetic algorithm is configured with the required component; otherwise, false.
true if the genetic algorithm is configured with the required component ; otherwise false .
algorithmContext
GeneticAlgorithm
The  currently in context.
The currently in context .