Replacing in .NET
-
I have a large project that early on a class was defined as "Blocks". There was grandious plans for this class, but as the project developed, "Blocks" became a place for a few constants. I would like to change this "Blocks" to "Constants", but the term "Blocks" is used EVERYWHERE in the program. The only certainty is that if I did a simple search and replace, I would screw at least 100 things up. I heard a rumor there is a smart replace for variable names/etc. I found very little info on it. Has anyone used it. Does anyone know if it will work on classes. Thanks in advance... Dwayne ***************** "We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
-
I have a large project that early on a class was defined as "Blocks". There was grandious plans for this class, but as the project developed, "Blocks" became a place for a few constants. I would like to change this "Blocks" to "Constants", but the term "Blocks" is used EVERYWHERE in the program. The only certainty is that if I did a simple search and replace, I would screw at least 100 things up. I heard a rumor there is a smart replace for variable names/etc. I found very little info on it. Has anyone used it. Does anyone know if it will work on classes. Thanks in advance... Dwayne ***************** "We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
If you're using VS2005, it supports refactoring[^]. If not, there are tools available for previous versions of VS, such as this one: ReSharper[^]. I am not aware of any free tools, though truth be told I have never looked for them. Jon Sagara As you may presently yourself be fully made aware of, my grammar sucks. Sagara.org | Blog | My Articles
-
If you're using VS2005, it supports refactoring[^]. If not, there are tools available for previous versions of VS, such as this one: ReSharper[^]. I am not aware of any free tools, though truth be told I have never looked for them. Jon Sagara As you may presently yourself be fully made aware of, my grammar sucks. Sagara.org | Blog | My Articles
Refractoring is the rumor I heard about. I am using 2003... Any thoughts on switching to 2005 mid project??? shouldn't be any issues right??? ***************** "We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
-
Refractoring is the rumor I heard about. I am using 2003... Any thoughts on switching to 2005 mid project??? shouldn't be any issues right??? ***************** "We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
It's hard to say, and only you and your team can make that call, but my gut reaction is that if you just want the refactoring, then no, don't switch mid-project. Jon Sagara As you may presently yourself be fully made aware of, my grammar sucks. Sagara.org | Blog | My Articles
-
Refractoring is the rumor I heard about. I am using 2003... Any thoughts on switching to 2005 mid project??? shouldn't be any issues right??? ***************** "We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
You could use "manual refactoring". Just rename the class and compile. The list of compile errors are references to everywhere you use the class. Double click an error and you end up in the file with the name selected. Just paste in the new name. --- b { font-weight: normal; }