Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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));
        }