我需要用下划线替换一些空格(即"PM HD PSP">"PM_HD_PSP")
这是我到目前为止所尝试的:
private string NombreExcel3(string excel) { MessageBox.Show(excel); excel.Replace(' ','_'); MessageBox.Show(excel); return excel; }
c# string replace
c# ×1
replace ×1
string ×1