在进行字符串替换之前是否没有必要使用这个if语句?
if (myString.Contains(oldValue)) { myString = myString.Replace(oldValue, newValue); }
.net c#
.net ×1
c# ×1