Last week I found an issue with Microsofts C# compiler, which does not generate warnings about unused variables in some cases. I’ve reported it to Microsoft and to my surprise, got an answer today.
Unfortunately they are not going to fix it :-(
…our guidance for customers who are interested in discovering unused elements in their code is to use FxCop. …we are not actively enhancing the compiler’s detection of these conditions and will not be making the changes you suggest.




