|Suppress 'Member was not initialized in this constructor' warning [message #1128293]
||Mon, 07 October 2013 10:46
| Krzysztof Czaiński
Registered: March 2013
Is it possible to suppress the Code Analysis warning: "Member 'x' was not initialized in this constructor". I know I can turn this type of warning off, but I generally find it useful. I would only like to suppress it for one particular constructor.
The "No break at end of case" warning, for example, can by suppressed by adding a comment:
That's exactly the kind of solution I'm looking for, since I want to comment, that this variable is intentionally left uninitialized, anyway.
Powered by FUDForum
. Page generated in 0.01804 seconds