Skip to content

Instantly share code, notes, and snippets.

@hmemcpy
Created December 5, 2011 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmemcpy/1435212 to your computer and use it in GitHub Desktop.
Save hmemcpy/1435212 to your computer and use it in GitHub Desktop.
Find uri.ToString() with ReSharper SSR
Here's how you can find all instances of System.Uri's ToString() method with ReSharper SSR (Structural Search and Replace):
1. Go to ReSharper menu -> Find -> Search with Pattern
2. Type in the following in the search pattern window:
$uri$.ToString()
3. Click 'Add Placeholder', select Expression. In the new dialog, put uri in the Name and 'System.Uri' in Expression type .
4. Click Find!
5. Voilla!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment