src/GenFx/GeneticEntity.cs
/// <summary>
/// Copies the state from this instance to <paramref name="entity"/>.
/// </summary>
/// <param name="entity"><see cref="GeneticEntity"/> to which state is to be copied.</param>
/// <remarks>
/// <para>
/// The default implementation of this method is to copy the state of this instance
/// to the entity passed in.
/// </para>
/// <para>
/// <b>Notes to inheritors:</b> When overriding this method, it is necessary to call the
/// <b>CopyTo</b> method of the base class.  It is not necessary to copy the state of properties that
/// are adorned with the <see cref="ConfigurationPropertyAttribute"/>; these properties have their state
/// automatically copied as part of the base implementation of this method.
/// </para>
/// </remarks>
/// <exception cref="ArgumentNullException"><paramref name="entity"/> is null.</exception>
Copies the state from this instance to .
Copies the state from this instance to .
public virtual void CopyTo(GeneticEntity entity)
        {
            if (entity is null)
            {
                throw new ArgumentNullException(nameof(entity));
            }
            this.CopyConfigurationStateTo(entity);
            entity.Age = this.Age;
            entity.rawFitnessValue = this.rawFitnessValue;
            entity.scaledFitnessValue = this.scaledFitnessValue;
        }
public virtual void CopyTo ( GeneticEntity entity ) { if ( entity is null ) { throw new ArgumentNullException ( nameof ( entity ) ) ; } this . CopyConfigurationStateTo ( entity ) ; entity . Age = this . Age ; entity . rawFitnessValue = this . rawFitnessValue ; entity . scaledFitnessValue = this . scaledFitnessValue ; }
Copies the state from this instance to .
Copies the state from this instance to .
None
entity
GeneticEntity
to which state is to be copied.
to which state is to be copied .
remarks
The default implementation of this method is to copy the state of this instance
to the entity passed in.
Notes to inheritors:CopyTo; these properties have their state
automatically copied as part of the base implementation of this method.
The default implementation of this method is to copy the state of this instance to the entity passed in . Notes to inheritors : CopyTo ; these properties have their state automatically copied as part of the base implementation of this method .