Exemplo n.º 1
0
 private bool Equals(HtmlText x, HtmlText y) =>
 StringComparer.Ordinal.Equals(x.Value, y.Value);
Exemplo n.º 2
0
 /// <summary>
 /// Initializes an instance of <see cref="HtmlText"/>.
 /// </summary>
 public HtmlText(HtmlText other)
     : this(other.Value)
 {
 }
Exemplo n.º 3
0
 private int GetHashCode(HtmlText text) => new HashCodeBuilder()
 .Add(text.Value, StringComparer.Ordinal)
 .Build();
Exemplo n.º 4
0
        /// <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));
        }