Hi all, I have a few questions regarding runtime manipulation of code. I am going to use the following few stmts to explain my questions better.
#using MyCorlib; MySystem.String appendStr; for ( i=0; i<=10000; i++ ) { dir.CreateSubDirectory(file.DirectoryName + "\" + i.ToString()); }//for First question: --------------- If I want to split the statement within the for loop with 2 statements using an MySystem.Sting.Append method, what options do I have? Doing this change / binary translation in an assembly file (PE or DLL) is one way. How do I handle this if the above code is a generated code at runtime? Second question: ---------------- file.DirectoryName returns a System.String object. I want to replace this with MySystem.String before I do the append operations....again at runtime. MySystem.String is a new implementation. I know System.String is a sealed class. Third question: --------------- Can I replace System.String with MySystem.String in the code and not manage the data? thanks GuruN You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.