I have a string from which I have to remove following char: \'\\r\', \'\\n\', and \'\\t\'. I have tried three different ways of removing these char and benchmarked them so I
string str; str = str.Replace(Environment.NewLine, string.Empty).Replace("\t", string.Empty);