private void Algorithm_FitnessEvaluated(object sender, EnvironmentFitnessEvaluatedEventArgs e) { this.OnFitnessEvaluated(e.Environment, e.GenerationIndex); }
/// <summary> /// Raises the <see cref="FitnessEvaluated"/> event. /// </summary> /// <param name="e"><see cref="EnvironmentFitnessEvaluatedEventArgs"/> to be passed to the <see cref="FitnessEvaluated"/> event.</param> private void OnFitnessEvaluated(EnvironmentFitnessEvaluatedEventArgs e) { this.FitnessEvaluated?.Invoke(this, e); }