How to improve the Replace function in CLR function?
问题 I have a CLR function to replace string values. but it runs a long time. How can I improve this function and make it runs faster? public static SqlString ReplaceValues(String Value) { // Put your code here char[] c = new char[] { '.' }; Value= Value.Trim(); Value = Value.Trim(c); Value = Value.Replace("'", "").Replace(")", " ").Replace("(", " ").Replace("-", " ").Replace("_", " "); Value = Regex.Replace(Value, @"[י", "+[י"); Value = Regex.Replace(Value, @"\s+", " "); return new SqlString