湖边的白杨树

探索是一种乐趣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年2月8日

摘要: (C#) 字符串替换1. 少的话,直接使用 String.Replace例如: // Correct the spelling of "document". string correctString = errString.Replace("docment", "document");2. 多的话,建个处理方法 private static string FomatName(string name) { var replacements = new Dictionary<char, char>() { ... 阅读全文
posted @ 2013-02-08 20:32 fdyang 阅读(1144) 评论(0) 推荐(0)