Dear friends, I wanted to create small tool which is used to replace some part of code in c# file from older application long back developed. My customer is advised to use NReFactory library. Already I have gone through that about NRefactory in code project. I'm bit confused because it has lot of features like code compilation and analysis etc. Please guide me which NReFactory library do I need to use for my requirement. Is there any sample code specific to code replacement. Example: 1. Reed old c# file 2. Replace old namespace, type and property to new one 3. Create a modified file in new system location. Thanks in Advance 😊 Regards, Ram Ram
S
sethupathiram
@sethupathiram
Posts
-
C# code replacement in older application using NReFactory library -
string concatenation with all possibilitiesHi All, string pattren = " INC | TRUST | COMPANY | 401K "; string[] ArrPattern = pattren.Split('|'); above the string array i need to concatenate all the posibilities like below output, ex: INC PLAN COMPANY 401K INC PLAN COMPANY empty INC PLAN empty 401k INC PLAN empty empty INC empty COMPANY 401k INC empty empty 401k INC empty empty empty empty PLAN COMPANY 401k ... ... ... like these 16 combination.... please share your ideas its very urgent for me... Regards, Ram