Editing c#

May 8, 2008 at 4:20 PM
Could this project eventually be used to edit the c# model that is built up? I have been looking for a tool that could be used to modify c# source code programmatically. Right now i have generated code which is overwritten when I re-execute the generator. I would like, for example, to be able to find a property in a generated class by name and then add an attribute definition to it.
Oct 20, 2009 at 2:02 PM


I also interested in such question.

Does your project currently support code transformation?

Personally i need to transform "for" loops to "Parallel.For" loops.

Can you show simple example if it is possible?

Oct 20, 2009 at 5:57 PM

Not sure this project is alive anymore. You could try the VS code model - http://msdn.microsoft.com/en-us/library/envdte.codemodel.aspx or just getting regex-taculous

Oct 21, 2009 at 3:28 AM

Currently somebody developing it

by vizu

Sun at
11:11 AM 3

TypeEntity.IsClass, IsStruct, etc. deleted because type checking can be used instead of them (as a result of deleting ConstructedGenericTypeEntity)."

Nov 16, 2009 at 1:36 PM

Hi guys,

The project is alive but the progress is really slow. At the moment I'm the only one developing it. And the scope is huge.

The plan is to support code transformations with a full roundtrip: source code -> syntax tree -> semantic graph -> modified syntax tree -> modified source code.

But we're only at step 2: transforming the syntax tree into a semantic graph. 

So it's a looong way to go...