![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
Ritagiser
学习初级阶段,为自己加油
展开
-
json 字符串转xml文档
/*json字符串转成xml文档*/ string content = "{\"name\":\"张三\",\"age\":15}"; XmlDictionaryReader xmlreader = JsonReaderWriterFactory.CreateJsonReader(Encoding.UTF8.GetBytes(content)原创 2012-05-14 11:51:22 · 595 阅读 · 0 评论 -
批量重命名文件名称
private void changeFileName(string sourceDir, string newName, string fileType) { DirectoryInfo dirInfor = new DirectoryInfo(sourceDir); FileInfo[] files = dirInfor.GetFiles(); for (int i = 0; i < file原创 2013-01-05 10:50:18 · 523 阅读 · 0 评论