I'm not sure to understand your need.
Do you want the VB.NET code for your CodeStatementCollection ?
In this case, you must iterate on each statement and call
"ICodeGenerator.GenerateCodeFromStatement".
Something like this:
ICodeGenerator VBCodeProvider cscProvider = new VBCodeProvider();
generator = cscProvider.CreateGenerator(myStreamWriter);
CodeGeneratorOptions cop = new CodeGeneratorOptions();
foreach (stmt in myCodeStatementCollection )
generator.GenerateCodeFromStatement(stmt, myStreamWriter, cop);
You need a StreamWriter to do that.
Lionel.
"João Santa Bárbara" <jo****@i24portugal.com> a écrit dans le message de
news:
OA**************@TK2MSFTNGP09.phx.gbl...
Hi all
i have a CodeStatementCollection, and i want to see what's in each line
ex:
dim x as object = new XXXobject
x.myproperty=100
and so one ..
can someone help me ???
thks
JSB