-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Would be nice including [NoEnumeration] attribute #148
Comments
This is fixed now in 3.3.0 - can you confirm? |
I'm not sure why that isn't working but I don't know that it's a problem in GuardClauses library. |
From JetBrains documentation/blog, these attributes are designed to not be included in the final compiled assembly - by default. You can read a full blog about it here. If I understood correctly, in order to fix this issue you have the following options:
I believe the decision should be made by you. But, I don't mind help fixing this issue. |
Ok, I reviewed the article and it seems like the right approach for me is to include the source of the annotation/attribute in my library so there's no dependency on any third party packages, and to mark it internal. The library shows how to get the required source code but I don't have the tooling to do so. So, if someone wants to either add the source to this conversation or make a PR with it added to this repo, that would help move this issue toward completion. |
Olá @tiagojsrios |
Guard.Against.Null There is [NoEnumeration] attribute for the input used in the method. Resharper siglalizes possibility of multiple enumeration eventhough the underlying method doesn't enumerate.
.net5
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: