C#文本问题 一个小问题,就是文本超出指定的长度时,显示省略号c# 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 static void Main(string[] args) { string result = 处理字符串("hello world hello world hello world hello world hello world hello world"); Console.WriteLine(result); } public static string 处理字符串(string str) { if (str.Length > 20) { return str.Substring(0, 20) + "..."; } return str; } 本帖最后由 caozhy 于 2013-08-27 15:03:40 编辑 Lucene.net怎么用,在那可以下载 如何隐藏其他程序的主副窗口? 常量中有换行字符,这样如何解决 c# 委托 如果保存Image为jpg文件 集装箱核对号是怎么换算 XAML设计器加载不了 用C#编写的读取客户端MAC地址的ActiveX控件,在IE中运行时出现权限错误,无从下手,求教 有人用c#写过英文关键字的提取么? 关于C#数组的问题?请各位大哥们指点一下!:) SQL语句查询问题 socket客户端连接不上服务器IP
{
string result = 处理字符串("hello world hello world hello world hello world hello world hello world");
Console.WriteLine(result);
} public static string 处理字符串(string str)
{
if (str.Length > 20)
{
return str.Substring(0, 20) + "...";
}
return str;
}