public override bool Equals(object obj) { BindingRestrictions.CustomRestriction restriction = obj as BindingRestrictions.CustomRestriction; return ((restriction != null) && (restriction._expression == this._expression)); }