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