汇总c#.net常用函数和方法集[12]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

span lang="ZH-CN" style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-family: Tahoma">。
strSubmit=strSubmit.Replace("<","<font><</font>");
然后保存或输出strSubmit
用此方法还可以简单实现UBB代码。

22
Math.Max(i,j)
ij中的最大值
int x=Math.Max(5,10); // x将取值 10

23
、字串对比一般都用: if(str1==str2){ } , 但还有别的方法:

(1)
string str1; str2
//
语法: str1.EndsWith(str2); __检测字串str1是否以字串str2

本文关键:汇总c#.net常用函数和方法集
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top