随笔分类 -  C#

C#
用正则彻底去除HTML\CSS\script代码
摘要:/**//// /// 去除HTML标记/// /// 包括HTML的源码 /// 已经去除后的文字public static string NoHTML(string Htmlstring){//删除脚本Htmlstring = Regex.Replace(Htmlstring,@"","",RegexOptions.IgnoreCase);//删除HTMLHtmlstring = Regex.... 阅读全文

posted @ 2006-09-18 09:45 徐灿钊Asp.net专栏 阅读(1965) 评论(1) 推荐(1) 编辑

Ref out keywords
摘要:ref parametersPassing variables by value is the default. We can, however, force value parameters to be passed by reference.To do so, we use the ref keyword. If a parameter is passed to a method, and i... 阅读全文

posted @ 2006-04-16 21:47 徐灿钊Asp.net专栏 阅读(495) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示