Class BinaryGene
Represents a gene that holds a binary value (0 or 1).
public class BinaryGene
- Inheritance
-
BinaryGene
- Inherited Members
Constructors
BinaryGene(int)
public BinaryGene(int value = 0)
Parameters
valueint
Properties
Value
Gets or sets the binary value (0 or 1).
public int Value { get; set; }
Property Value
Methods
Clone()
public BinaryGene Clone()
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.