-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive on NS5000 when received method is static. #199
Comments
Hi @tpodolak public class TestExample{
} public class ExampleClassWithMemoryCache
} |
Thanks for full example. Extension methods follow the same rules as static methods so they cannot be substituted. In certain cases however, extension method substitution might work - but this is considered a hack rather than documented behavior. Please take a look at #170 where this is explained in details by @dtchepak |
For example code:
transactionScopeFactory.Received(1).Create();
Analyzers makes a warning NS5000 here, when Create method is static.
The text was updated successfully, but these errors were encountered: