随笔分类 -  C#

摘要:using System;using System.Text;namespace ConsoleTest{ internal class Program { private static void Main(string[] args) { string aaa = "data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpL... 阅读全文
posted @ 2012-11-24 15:49 Adam.Zhao 阅读(6945) 评论(0) 推荐(0)
摘要:好久没有来写博客了,从今天开始,我要将最近进行的网站性能优化的工作,做一个总结和下一步计划。 阅读全文
posted @ 2011-01-02 08:01 Adam.Zhao 阅读(301) 评论(2) 推荐(0)
摘要:声明接口:publicinterfaceIClone{TClone<T>(Tinstance)whereT:class;} 建立CloneManager类实现接口:publicclassCloneManager:IClone{/**////<summary>///Clonesthespecifiedinstance.///</summary>///<typeparamname="T"></typeparam>///<paramname="instance">Theinstance.& 阅读全文
posted @ 2008-04-22 11:35 Adam.Zhao 阅读(708) 评论(1) 推荐(0)
摘要:无论你的Web.Config中设置的编码格式是什么,都不会影响Format化日期时间 --> myStringBuilder.AppendFormat(@"", orderinfo.FlightItineraryInfo.FlightLegSet[0].PrimaryFlightSegment.DepartureTime.ToStr... 阅读全文
posted @ 2008-04-09 15:16 Adam.Zhao 阅读(286) 评论(0) 推荐(0)
摘要:ReSharper 3.0.1 发布: 包括三个版本 Full Edition,C# Edition,VB.NET Edition Download now 23 MB Version: 3.0.1 C# Edition Build: 471 Download now 23 MB Version: 3.0.1 VB.NET Edition Bui... 阅读全文
posted @ 2007-07-30 14:56 Adam.Zhao 阅读(1790) 评论(7) 推荐(0)
摘要:1.面向对象的思想主要包括什么?2.什么是ASP.net中的用户控件3.什么叫应用程序域?什么是受管制的代码?什么是强类型系统?什么是装箱和拆箱?什么是重载?CTS、CLS和CLR分别作何解释?4.列举一下你所了解的XML技术及其应用5.值类型和引用类型的区别?写出C#的样例代码。6.ADO.net中常用的对象有哪些?分别描述一下。7.如何理解委托?8.C#中的接口和类有什么异同。9.。net... 阅读全文
posted @ 2007-07-30 13:51 Adam.Zhao 阅读(465) 评论(0) 推荐(0)
摘要:IntroductionThis article shall describe the construction of a custom control used to play video on an ASP.NET web page. The control is based upon the Windows Media Player active X control; with it you... 阅读全文
posted @ 2007-04-26 16:25 Adam.Zhao 阅读(1065) 评论(0) 推荐(0)
摘要:Introduction Seems that I am going to provide instructions regarding how to face technical interviews on .NET. I am sorry but this is not the content of this article series. I have worked a lot on p... 阅读全文
posted @ 2007-04-16 16:06 Adam.Zhao 阅读(1340) 评论(0) 推荐(0)
摘要:读取XML文件内容的简单方法: /**//// /// XmlOperation 的摘要说明。 /// public sealed class XmlOperation { //private static string configFile = System.IO.Path.GetFullPath("..\\..\\Xml\\Words.xml"); ... 阅读全文
posted @ 2007-04-03 11:46 Adam.Zhao 阅读(801) 评论(0) 推荐(0)
摘要:/**//// /// 保存程序失败及错误信息到日志 /// /// 错误信息 public void SaveErrorLog(string message) { string filePath = System.Web.HttpContext.Current.Server.MapPath("~//L... 阅读全文
posted @ 2007-03-08 16:33 Adam.Zhao 阅读(387) 评论(0) 推荐(0)
摘要:1private void frmMain_Load(object sender, System.EventArgs e) 2 { 3 //显示托盘图标 4 this.Visible=false; 5 this.notifySys.Visible=true; 6 } 7 8 /**////... 阅读全文
posted @ 2007-03-06 15:07 Adam.Zhao 阅读(338) 评论(1) 推荐(0)
摘要:WinForm程序启动时不显示主窗体的实现方法摘选自网友博客:http://www.cnblogs.com/smalldust 阅读全文
posted @ 2007-03-06 14:24 Adam.Zhao 阅读(408) 评论(0) 推荐(0)
摘要:用分解字符的方法实现:static bool IsNumeric(string str) { if (str==null || str.Length==0) return false; foreach(char c in str) { if (!Char.IsNumber(c)) { return false; } } r... 阅读全文
posted @ 2007-03-01 22:24 Adam.Zhao 阅读(172) 评论(0) 推荐(0)
摘要:首先要安装第1步visual studio.net系统必备,其它点不了.可点第1步安装就弹出"安装程序检测到另一个程序要求计算机重新启动.必须重新启动计算机后才能安装visual studio.net系统必备.系统重新启动后,你需要重新启动安装程序.单击"确定"重新启动,单击"取消"退出安装程序,以后再安装."对话框.重启n次都弹出此对话框,无法安装. 解决办法: 在注册表删除HKEY_LOC... 阅读全文
posted @ 2007-02-28 12:41 Adam.Zhao 阅读(343) 评论(1) 推荐(0)
摘要:1获取某月的开始日期和结束日期#region 获取某月的开始日期和结束日期 2 /**//// 3 /// 获取某月的开始日期和结束日期 4 /// 5 /// 年份 6 /// 月份 7 /// 开始日期 8 /// 结束日期 9 public static void GetSe... 阅读全文
posted @ 2007-02-28 12:41 Adam.Zhao 阅读(495) 评论(0) 推荐(0)