- 博客(2)
- 收藏
- 关注
原创 C#正则判断字符串和正则删除字符串
//正则https://www.runoob.com/csharp/csharp-regular-expressions.html//正则判断是否存在匹配字符串bool regex = Regex.IsMatch(bit, @"^[a-zA-Z]+\d+$"); if (regex) { //包含 }.
2021-10-20 15:53:17 410
原创 C#把对象以文件的形式在本地保存读取
public static string ReadStreamFromFile(string path) { //Directory.Exists(path)//判断路径是否存在 //File.Exists(path)//判断文件是否存在 if (!File.Exists(path)) { return ""; } .
2021-10-20 15:32:06 377
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人