public override bool Equals(object obj) { Variable var = obj as Variable; if(var == null) { return false; } return this.id.Equals(var.id); }