Example #1
0
 public bool Equals(SourceCodeMapping other)
 {
     return(other != null &&
            ReferenceEquals(Mapping, other.Mapping) &&
            ILRange.Equals(other.ILRange) &&
            StartPosition.Equals(other.StartPosition) &&
            EndPosition.Equals(other.EndPosition));
 }
Example #2
0
 public override int GetHashCode()
 {
     return(Mapping.GetHashCode() ^ ILRange.GetHashCode() ^ StartPosition.GetHashCode() ^ EndPosition.GetHashCode());
 }