How do I do a search, for example for all occurrences of "MessageBox" in my code?

I tried searching but the results are only those in System.* namespaces. Even if the left panel I have clicked my own module, search still won't show up stuff in my code.

THanks.
KK246
0

Comments

2 comments

  • haleyjason
    Usually when it is "my code" I'll use Visual Studio and search all files (or textpad).

    In Reflector, if you have all your assemblies in the assembly tree, then try the following:
    1. do a search for MessageBox.
    2. Once you go to the declaration of that class in the System.Windows.MessageBox, you want to right click on the name in the tree and choose "Analyze".
    3. In the Analyzer window, click on the plus by the type name, then the "Used By" text - this will show you of all the assemblies loaded what code uses the MessageBox class.

    There is also an addin that may work better (I forget - you'll to try it out) called "CodeSearch" on the addins site: http://www.codeplex.com/reflectoraddins
    haleyjason
    0
  • KK246
    Thanks. It works as you described.

    I was checking to see how naked my code was even when obfuscated. :)
    KK246
    0

Add comment

Please sign in to leave a comment.