O'Reilly logo

Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010 by Peter Vogel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Modifying Code in the Editor

The Document and TextDocument objects, described in this chapter, are the primary tools you will use to add, read, and modify code in the files in your project. Whereas the FileCodeModel (Chapter 3, “Manipulating Project Components”) and VsLangProject/VsWebsite objects (Chapter 5, “Supporting Project-Specific Features”) will allow you to insert some code into your code files (class declarations and other structures), they ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required