views:

188

answers:

2

What method does VS use to manipulate the cs file when refactoring. I.e if you extract a method.

I am 100% sure (I hope) it is not T4, It could be EnvDTE or CodeDom but could not find out which one and was hoping someone knew. Thanks

+1  A: 

Simple refactoring is done with snippets: C:\Program Files\Microsoft Visual Studio 9.0\VC#\Snippets\1033\Refactoring

Dutch Nico
Thank you for the reply, my next question would be, if a snippet declaratively describes how the code should be manipulated, which class or method parses the snippet to do the work.
Phill Duffy
A: 

I have found the Automation Object Model is what I was after:

"Automation Object Model - MSDN"

Phill Duffy