Class PermutationGene
Represents a gene in a permutation (the index of an element in a sequence).
public class PermutationGene
- Inheritance
-
PermutationGene
- Inherited Members
Constructors
PermutationGene(int)
public PermutationGene(int index)
Parameters
indexint
Properties
Index
Gets or sets the index value.
public int Index { get; set; }
Property Value
Methods
Clone()
public PermutationGene 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.