...
In either case, you can enable active generation by generating the code for Method1, while keeping the handcrafted code for Method2 in a separate file, untouched by CodeSmith Generator. At compile time, the appropriate compiler will knit the two files together into a single unified class.