随笔分类 - 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...
阅读全文
摘要:好久没有来写博客了,从今天开始,我要将最近进行的网站性能优化的工作,做一个总结和下一步计划。
阅读全文
摘要:声明接口:publicinterfaceIClone{TClone<T>(Tinstance)whereT:class;} 建立CloneManager类实现接口:publicclassCloneManager:IClone{/**////<summary>///Clonesthespecifiedinstance.///</summary>///<typeparamname="T"></typeparam>///<paramname="instance">Theinstance.&
阅读全文
摘要:无论你的Web.Config中设置的编码格式是什么,都不会影响Format化日期时间 --> myStringBuilder.AppendFormat(@"", orderinfo.FlightItineraryInfo.FlightLegSet[0].PrimaryFlightSegment.DepartureTime.ToStr...
阅读全文
摘要: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...
阅读全文
摘要:1.面向对象的思想主要包括什么?2.什么是ASP.net中的用户控件3.什么叫应用程序域?什么是受管制的代码?什么是强类型系统?什么是装箱和拆箱?什么是重载?CTS、CLS和CLR分别作何解释?4.列举一下你所了解的XML技术及其应用5.值类型和引用类型的区别?写出C#的样例代码。6.ADO.net中常用的对象有哪些?分别描述一下。7.如何理解委托?8.C#中的接口和类有什么异同。9.。net...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:读取XML文件内容的简单方法: /**//// /// XmlOperation 的摘要说明。 /// public sealed class XmlOperation { //private static string configFile = System.IO.Path.GetFullPath("..\\..\\Xml\\Words.xml"); ...
阅读全文
摘要:/**//// /// 保存程序失败及错误信息到日志 /// /// 错误信息 public void SaveErrorLog(string message) { string filePath = System.Web.HttpContext.Current.Server.MapPath("~//L...
阅读全文
摘要:1private void frmMain_Load(object sender, System.EventArgs e) 2 { 3 //显示托盘图标 4 this.Visible=false; 5 this.notifySys.Visible=true; 6 } 7 8 /**////...
阅读全文
摘要:WinForm程序启动时不显示主窗体的实现方法摘选自网友博客:http://www.cnblogs.com/smalldust
阅读全文
摘要:用分解字符的方法实现: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...
阅读全文
摘要:首先要安装第1步visual studio.net系统必备,其它点不了.可点第1步安装就弹出"安装程序检测到另一个程序要求计算机重新启动.必须重新启动计算机后才能安装visual studio.net系统必备.系统重新启动后,你需要重新启动安装程序.单击"确定"重新启动,单击"取消"退出安装程序,以后再安装."对话框.重启n次都弹出此对话框,无法安装. 解决办法: 在注册表删除HKEY_LOC...
阅读全文
摘要:1获取某月的开始日期和结束日期#region 获取某月的开始日期和结束日期 2 /**//// 3 /// 获取某月的开始日期和结束日期 4 /// 5 /// 年份 6 /// 月份 7 /// 开始日期 8 /// 结束日期 9 public static void GetSe...
阅读全文

浙公网安备 33010602011771号