private bool Equals(HtmlText x, HtmlText y) => StringComparer.Ordinal.Equals(x.Value, y.Value);
/// <summary> /// Initializes an instance of <see cref="HtmlText"/>. /// </summary> public HtmlText(HtmlText other) : this(other.Value) { }
private int GetHashCode(HtmlText text) => new HashCodeBuilder() .Add(text.Value, StringComparer.Ordinal) .Build();
/// <summary> /// Converts this <see cref="HtmlText"/> to an instance of <see cref="XText"/>. /// </summary> public static XText ToXText(this HtmlText text) { text.GuardNotNull(nameof(text)); return(new XText(text.Value)); }