Introduction
Practical examples of using Roslyn for source code transformations.
- Roslyn syntax trees are immutable. By calling a method like ReplaceNodes we generate a new node rather than modifying the existing one. This requires you to always change the object you have been working on.