Block a method call in your DotNet project with Roslyn

A quick and easy way to block function calls known to be unsafe I decided that I wanted to get rid of a synchronous function in my DotNet code and standardize on the async version. The obvious path forward is to right click on a function call in my GUI and select “Find Usages”, then work through each usage and replace it with the async version. But what if another developer on the team later goes…