In C#, one of the conventions for asynchronous methods (those marked with the
public async Task MyMethod(/* params */) ... <-- Bad, missing "Async" suffix
public async Task MyMethodAsync(/* params */) ... <-- Good, as per convention
Here with Regex:
It looks for the keyword async and then at a "(" without ("?<!") async before it.
Edit: Better version. Thx @Andrew
This will give you the methods with small written asyncs at the and as well. Furthermore it allows to use find and replace.