tags:

views:

64

answers:

2

im looking for the tool which takes the C# source code as input and does the processing based on the rules set like change all the method parameter to camel case or pascal case vice verse and gived output the modified source code.

+2  A: 

take a look at resharper

it is not really meant for post-coding cleanup, so it might not be exactly what you need ..

but it helps you prevent having to do said clean-up by commenting on your coding as you are working


from the webiste:

ReSharper in a nutshell

ReSharper provides solution-wide error highlighting on the fly, instant solutions for found errors, over 30 advanced code refactorings, superior unit testing tools, handy navigation and search features, single-click code formatting and cleanup, automatic code generation and templates, and a lot more productivity features for C#, VB.NET, ASP.NET, XML, and XAML.

lexu
I'm agree... and resharper is very very ease to use.
Jonathan
+1 I love resharper
Nifle
+1  A: 

There is also StyleCop

StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project

Nifle
Does StyleCop have an auto-correction feature as the OP has asked?
Johannes Rudolph
thanks for the details but what im looking to something to do with the existing code. This tool will help me in future coding. What about the existing code modification.
sameer