Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
v.4.rc1: Search function does not locate method #1387
ILSpy version 220.127.116.1117-rc1
Search for this method:
0 results found, but method is inside the assembly.
(BTW, it has some decompiling issue and I've just copy-pasted it's name from assert stack trace)
Expected result: end-user will be able to find the method
The problem is that the search term contains spaces, which ILSpy then interprets as two independent search terms. You can now use " to force ILSpy to parse the search term correctly. Note that when using regular expressions you have to wrap the whole expression in ", i.e. "/regularExpression/". Note that closing quotes and slashes are optional.
The problem is: as soon as there are multiple search terms there is no way to activate full name search. So both search terms are only compared against the method names rather than full names.
Should I add
fullNameSearch = terms.Any(t => t.Contains("."));
in the other case?