摘要: private void CopyDir(string srcPath, string aimPath) { try { // 检查目标目录是否以目录分割字符结束如果不是则添加 if (aimPath[aimPath.Length - 1] != System.IO.Path.DirectorySeparatorChar) { aimPath += System.IO.Path.DirectorySeparatorChar; } // 判断目标目录是否存在如果不存在则新建 if (!System.IO.Directory.Exists(aimPath)) { System.IO.Directo 阅读全文
posted @ 2011-11-16 10:11 Relict 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Text; 3 4 ///<summary> 5 ///汉字拼音声母计算类 6 ///</summary> 7 public class ChineseConvertor 8 { 9 private ChineseConvertor() { }10 11 ///<summary>12 ///获取一串汉字的拼音声母13 ///</summary>14 ///<param name="chinese">Unicode格式的汉字字符串</param> 阅读全文
posted @ 2011-11-16 09:40 Relict 阅读(321) 评论(0) 推荐(0) 编辑