Exemple #1
0
 /// <summary>
 /// Determines whether two <see cref="LinePosition"/> are the same.
 /// </summary>
 /// <param name="other">The object to compare.</param>
 public bool Equals(RefLinePosition other)
 {
     return(other.Line == this.Line && other.Character == this.Character);
 }
Exemple #2
0
        public int CompareTo(RefLinePosition other)
        {
            int result = _line.CompareTo(other._line);

            return((result != 0) ? result : _character.CompareTo(other.Character));
        }