Creating New Overloaded Methods in Visual Studio C# is Really Easy with CodeRush

So, you want to add a couple extra parameters to an existing method in Visual Studio, while not having to change all your existing code to call the new method signature?  It’s easy with CodeRush from Devexpress.  In this post, I’ll start with a simple method and add some parameters to it, then do the magic refactor. Here is the starting code. public static int SynchronizeScopesAsyncStart( int dbSyncPairId, string schemaName, string connectionStringLeft, string scopeLeft, string connectionStringRight, string scopeRight, bool skipDbLogging) {... … Continue Reading

Another Nice DevExpress CodeRush Refactoring

For the last few days, I’ve been using DevExpress CodeRush and am finding some very useful refactorings.  Many I’m not blogging about, but there are a few that I really like.  In this post, I’m going to show just two of those refactorings that have been making my code much nicer and easier to write.  One is the “Introduce Using” refactoring, and the other is “Convert to Lambda Expression”. Before I go into the details, I’d just like to disclose that when I was first writing the Silicon Valley Code Camp web site, I was an and c# newby.  I’m not claiming wizard status now, but I have to admit that when I go back and look at some of the code I wrote back then (including what I’m showing below before the … Continue Reading

A Handy Refactoring with CodeRush (InLine Temp)

I’ve recently started using CodeRush with Visual Studio 2010 and am so far very impressed with the convenience it adds to coding.  One thing that is very clear is that the creators of CodeRush are real programmers and look very hard for patterns that us developers are constantly doing.  As I run into these things that get my attention, I plan on blogging them.  Some are just earth shattering, and others, just nice to have.  This particular one is a nice to have. So, say you have code like this:   var sessionAttendeeOds = new SessionAttendeeODS();listSessionAttendees = sessionAttendeeOds.GetByUsername(Context.User.Identity.Name);   … Continue Reading


Get every new post delivered to your Inbox

Join other followers: