cs 从字串指定位置替换字串, 函数 ReplaceAt

类别: CSharp.Net, function, 字符串
标签: cs, at, ReplaceAt, replace
摘要: ..
正文:
 static string ReplaceAt(string Text, int Pos, string Rpls)
 {//shawl.qiu code
  string[] s = new string[]{Text.Substring(0,Pos), Rpls, Text.Substring(Pos+Rpls.Length)};  
  return String.Join("", s);
 }//end static string ReplaceAt(string Text, int Pos, string Rpls)



文章相关信息:
主题: cs 从字串指定位置替换字串, 函数 ReplaceAt
发表者: shawl.qiu
电子邮件: shawl.qiu@gmail.com
QQ: 908202921
MSN: btbtd@msn.com
Homepage: http://www.btbtd.org/
Blog: http://blog.csdn.net/btbtd/
发表日期: 2008-2-24 17:37:22
更新日期:
来源引用: shawl.qiu CSharp DotNet 个人资料管理系统
引用本页: http://gi.2288.org/mod/code/display/Default.aspx?aid=960
关闭
Google
搜索WWW
搜索www.btbtd.org
搜索blog.csdn.net
Powered by shawl.qiu © 2008-2010 the shawl.qiu Javascript Kits
Copyright © 2008-2010 by shawl.qiu