天天看點

C#從路徑中獲得檔案名的正确寫法

C#從路徑中獲得檔案名的正确寫法

this.filePath = openFileDialog.FileName.Split('\\').Last();