日期:2014-05-17 浏览次数:21167 次
public string StrMove(string Dest, string Source, int count)
{
if (count > Source.Length)
{
Dest = Source;
return Dest;
}
if (count >= Dest.Length)
{
Dest = Source.Substring(0, Dest.Length);
return Dest;
}
Dest = Source.Substring(0, count) + Dest.Substring(Dest.Length - count);
return Dest;
}