public override bool equals(ConsistencyExpression ce) { if (ce is PropertyConsistencyExpression) { PropertyConsistencyExpression pce = (ce as PropertyConsistencyExpression); return pce.property.Value == this.property.Value && pce.property.Type == this.property.Type; } else return ce.equals(this); }