private bool Equals(SourceCodeRange other) { if (string.Equals(this.FileName, other.FileName) && this.StartPosition.Equals(other.StartPosition)) { return(this.EndPosition.Equals(other.EndPosition)); } return(false); }
public static SourceCodeRange FromMsIlLine(string line) { SourceCodePosition start; SourceCodePosition end; string fileName; if (!SourceCodeRange.ExtractLineParts(line, out start, out end, out fileName)) { return((SourceCodeRange)null); } return(new SourceCodeRange(fileName, start, end)); }