/// <summary> /// Aggregates the matches from the usage queries. /// </summary> /// <param name="symbolServer">To get file and line info the pdbs are read. If the pdb does not match it contacts the symbol server to look for matching pdb and downloads it.</param> public UsageQueryAggregator(string symbolServer) : this(true) { if (myPdbReader != null) { myPdbReader.Dispose(); myPdbReader = null; } myPdbReader = new PdbInformationReader(symbolServer); }
/// <summary> /// Aggregates the matches from the usage queries. /// </summary> /// <param name="bReadPdbs">if set to <c>true</c> [you get file and line information for the matches].</param> public UsageQueryAggregator(bool bReadPdbs) { MethodMatches = new List <QueryResult <MethodDefinition> >(); TypeMatches = new List <QueryResult <TypeDefinition> >(); myTypeQuery = new TypeQuery(); FieldMatches = new List <QueryResult <FieldDefinition> >(); AssemblyMatches = new HashSet <string>(StringComparer.OrdinalIgnoreCase); if (bReadPdbs) { myPdbReader = new PdbInformationReader(); } }