public override bool Equals(object other) { // The is operator will return false if null if (other is HtmlContentValue otherValue) { return(_value.Equals(otherValue._value)); } return(false); }