This is my code and I want single quote before and after.
char[] charsToTrim = { '\\' };
selectedITeration += (lis.Text.Trim(charsToTrim) + ",").Replace(@"\", @"\\");
Output:
\MRI_SCRUM_GIT\\Iteration\\AS-Automation,
\MRI_SCRUM_GIT\\Iteration\\Pluse Pheonix,
\MRI_SCRUM_GIT\\Iteration\\Pluse Pheonix\Sprint 1,
\MRI_SCRUM_GIT\\Iteration\\Pluse Pheonix\Sprint 10
I want something like this:
'MRI_SCRUM_GIT\\AS-Automation',
'MRI_SCRUM_GIT\\Pluse Pheonix',
'MRI_SCRUM_GIT\\Pluse Pheonix\\Sprint 1',
'MRI_SCRUM_GIT\\Pluse Pheonix\\Sprint 10'