Dave Burke : Freelance .NET Web Developer specializing in Online Communities

VS2005 Refactoring : Promote Local Variable to Parameter

Move a variable from a local usage to a method, indexer, constructor or delegate parameter.

We're promoting a local string named "samplevar" to become a parameter of the SetFont() method.  The resulting code is below.



private void SetFont(string samplevar)
{ ... }

SetFont("test");

Comments (0) | Post RSS RSS comment feed

Posted on 5/21/2005 2:47:00 PM by Dave Burke
Categories: .NET
Tags:

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke