resharper "cleanup code" vs. 'var' keyword

Posted by bitbonk on Stack Overflow See other posts from Stack Overflow or by bitbonk
Published on 2009-10-01T13:45:04Z Indexed on 2010/05/02 18:58 UTC
Read the original article Hit count: 365

Filed under:

I have an odd behavior with code clean up for c# in visual studio 2008 Team Developer Edition. Whenever I clean up my code using "Full Cleanup" it replaces all var declaration with explicit type declarations. But I have set the appropriate settings under "Inspection Severity" "Use var keyword when initializer explictly declares type" and "use var keyword when possible" to "Show as Error"

Is there any other setting I need to set or is this a known bug?

© Stack Overflow or respective owner

Related posts about resharper