Rev | Line | |
---|
[14727] | 1 | namespace 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.