我的程序将从互联网上获取任意字符串并将其用于文件名.有没有一种简单的方法从这些字符串中删除坏字符或我是否需要为此编写自定义函数?
.net c# string filepath
.net ×1
c# ×1
filepath ×1
string ×1