src/GenFx.Components/Lists/BinaryStringEntity.cs
/// <summary>
/// Copies the state from this object to <paramref name="entity"/>.
/// </summary>
/// <param name="entity"><see cref="GeneticEntity"/> to which state is to be copied.</param>
/// <exception cref="ArgumentNullException"><paramref name="entity"/> is null.</exception>
Copies the state from this object to .
Copies the state from this object to .
public override void CopyTo(GeneticEntity entity)
        {
            if (entity is null)
            {
                throw new ArgumentNullException(nameof(entity));
            }
            this.AssertIsInitialized();
            base.CopyTo(entity);
            BinaryStringEntity binStrEntity = (BinaryStringEntity)entity;
            binStrEntity.genes = (BitArray)this.genes.Clone();
            binStrEntity.UpdateStringRepresentation();
        }
public override void CopyTo ( GeneticEntity entity ) { if ( entity is null ) { throw new ArgumentNullException ( nameof ( entity ) ) ; } this . AssertIsInitialized ( ) ; base . CopyTo ( entity ) ; BinaryStringEntity binStrEntity = ( BinaryStringEntity ) entity ; binStrEntity . genes = ( BitArray ) this . genes . Clone ( ) ; binStrEntity . UpdateStringRepresentation ( ) ; }
Copies the state from this object to .
Copies the state from this object to .
None
entity
GeneticEntity
to which state is to be copied.
to which state is to be copied .