G
greatbarrier86
What's the best practice suggestion for a situation like this? Should i check
to see if the string contains the specified To-Be-Replaced string before
actually executing String.Replace? Or is it better to just run Replace? It
sees more efficient to just do Replace, but more appropriate to do Contains
first.
to see if the string contains the specified To-Be-Replaced string before
actually executing String.Replace? Or is it better to just run Replace? It
sees more efficient to just do Replace, but more appropriate to do Contains
first.