Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/StatelessExpression.cs @ 14727

Last change on this file since 14727 was 14727, checked in by pkimmesw, 7 years ago

#2665 PushGP HL Integration, Views, Parameters

File size: 459 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Expressions {
2  public abstract class StatelessExpression : Expression {
3    private readonly int hashCode;
4    protected StatelessExpression() {
5      this.hashCode = this.GetType().FullName.GetHashCode();
6    }
7
8    public override int GetHashCode() {
9      return this.hashCode;
10    }
11
12    public override bool Equals(object obj) {
13      return ReferenceEquals(this, obj);
14    }
15  }
16}
Note: See TracBrowser for help on using the repository browser.