I want to use a custom attribute next to my method. Is there a possibility to
implement an action which will disable specific pragma-warnings?
I know that there is an attribute, “SupressMessageAttribute” I guess.
There is some documentation on Microsoft.
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/suppress-warnings
But I want to set disable specific pragma-warnings by my own custom attribute.
Thanks for your help!
mbkdev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.