Explanation:
public string RemoveChars(string Txt)
{
char[] chars = new char[] { '@', '+', '*' };
int index = 0;
foreach (char ch in chars)
{
index = 0;
while (Txt.Contains(ch.ToString()))
{
index = Txt.IndexOf(ch);
Txt = Txt.Remove(index,1);
}
}
return Txt;
}
|