I have got a String with some special characters.
string strValue = "MyString[]{";
Here the string strValue contains some special characters and these characters are mentioned in a character array arrFindString and the corresponding character need to be replaced with the character in another character array in arrReplaceString having the same index position.
char[] findArray = {'[',']','{'};
char[] replaceArray = { '(', ')', '-' };
So in my case the string strValue has a character called '['.So at first we need to find the corresponding index of that character in findArray then we need to replace that character with the character having the same index in replaceArray .So here '[' has to be replaced by '('
Is there any way the same can be accomplished using linq?... I know its possible using for each .Please help
foreachis far more natural and will be easier to maintain.