N S

Novick Software
SQL Server Consulting • Design • Programming • Training

  andy novick is a sql server mvp

 

 

Tips and Tricks for:  Visual Studio.Net, VB.Net, C#

 

The Problem:   Visual Studio.Net doesn't have an easy way to find all occurrences of a class or method.

Sometimes searching the text of your program for a string match, particularly for method names, isn't very valuable because there are several methods that match the string.


Solution: Change the name by adding an X at the end. Then use the "Task List" to locate all references.

That's right.  Just screw up the name by adding X (or something else) at the end and the automatic compilation feature of Visual Studio will show all the places where there are compiler errors, which will be at every reference to the class or method.  Don't forget to go back and fix the name once you're done.  Thanks to John Giudice of Grove Network for this tip.  John is interested in collaborative software.  His site is http://www.teaminfocenter.com

BTW, Visual Studio 2005 (a.k.a. Whidbey) will have a way to change a class name or method based on the object definition.  Let's hope they use this technology as a way to find where the class or method is used.

......


RSS as HTML

Personal Blog

 
New Tips:

Use dsinit to set the SQL Server instance for Windows Azure dev storage

Upcoming
Presentations:

Fairfield
Westchstr
SQL

July 8
Data Dude
 

RI SQL
July 14
SQL Azure


Full Schedule