src/GenFx/GeneticEntity.cs
/// <summary>
/// Indicates whether the current object is equal to another object.
/// </summary>
/// <param name="obj">An object to compare with this object.</param>
/// <returns>true if the current object is equal to <paramref name="obj"/>; otherwise, false.</returns>
Indicates whether the current object is equal to another object.
Indicates whether the current object is equal to another object .
public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }
            if (!(obj is GeneticEntity entity))
            {
                return false;
            }
            return this.Equals(entity);
        }
public override bool Equals ( object obj ) { if ( obj == null ) { return false ; } if ( ! ( obj is GeneticEntity entity ) ) { return false ; } return this . Equals ( entity ) ; }
Indicates whether the current object is equal to another object.
Indicates whether the current object is equal to another object .
true if the current object is equal to ; otherwise, false.
true if the current object is equal to ; otherwise false .
obj
object
An object to compare with this object.
An object to compare with this object .