// <summary> /// For each query in the list of queries, search for all methods matching the query by name, signature or id /// </summary> /// <param name="r2r">Contains all the extracted info about the ReadyToRun image</param> /// <param name="title">The title to print, "R2R Methods by Query" or "R2R Methods by Keyword"</param> /// <param name="queries">The keywords/ids to search for</param> /// <param name="exact">Specifies whether to look for methods with names/signatures/ids matching the method exactly or partially</param> private void QueryMethod(R2RReader r2r, string title, IReadOnlyList <string> queries, bool exact) { if (queries.Count > 0) { _dumper.WriteDivider(title); } foreach (string q in queries) { IList <R2RMethod> res = FindMethod(r2r, q, exact); XmlNode queryNode = _dumper.DumpQueryCount(q, "Methods", res.Count); foreach (R2RMethod method in res) { _dumper.DumpMethod(method, queryNode); } } }