Esempio n. 1
0
        public override bool Equals(Token that)
        {
            Contracts.AssertValue(that);

            ErrorToken other = that as ErrorToken;

            if (other == null)
            {
                return(false);
            }

            return(_detailErrorKey?.Key == other._detailErrorKey?.Key && base.Equals(other) && Enumerable.SequenceEqual(_resourceKeyFormatStringArgs, other.ResourceKeyFormatStringArgs));
        }
Esempio n. 2
0
 /// <summary>
 /// Copy Ctor for ErrorToken used by Clone
 /// </summary>
 /// <param name="tok">The token to be copied</param>
 /// <param name="newSpan">The new span</param>
 private ErrorToken(ErrorToken tok, Span newSpan)
     : this(newSpan, tok._detailErrorKey)
 {
 }