src/GenFx.Components/Lists/MultiPointCrossoverOperator.cs
/// <summary>
/// Returns whether the entity contains the specified value.
/// </summary>
/// <param name="entity">Entity to use.</param>
/// <param name="value">Value to search for.</param>
/// <param name="maxIndex">The max index to iterate to when searching for the value.</param>
/// <returns>True if the value was found; otherwise, false.</returns>
Returns whether the entity contains the specified value.
Returns whether the entity contains the specified value .
private static bool ContainsValue(ListEntityBase entity, object? value, int maxIndex)
        {
            for (int i = 0; i <= maxIndex; i++)
            {
                if (Object.Equals(entity.GetValue(i), value))
                {
                    return true;
                }
            }
            return false;
        }
private static bool ContainsValue ( ListEntityBase entity , object ? value , int maxIndex ) { for ( int i = 0 ; i <= maxIndex ; i ++ ) { if ( Object . Equals ( entity . GetValue ( i ) , value ) ) { return true ; } } return false ; }
Returns whether the entity contains the specified value.
Returns whether the entity contains the specified value .
True if the value was found; otherwise, false.
True if the value was found ; otherwise false .
entity
ListEntityBase
Entity to use.
Entity to use .
value
object?
Value to search for.
Value to search for .
maxIndex
int
The max index to iterate to when searching for the value.
The max index to iterate to when searching for the value .