I have a .NET project (C#), where in my code there’s a function like this:
public void myFunction(string myStr)
{
myStr = "This is not an empty string";
if(String.IsNullOrEmpty(myStr))
{
DoSomething();
}
}
I want to analyze my application to see if there are blocks of code that can never be reached. How could I do this?
Use ReSharper to make your code more efficient.
Checking of unavailable code areas in one of it’s features.