随笔分类 -  C#

Sharing experience about the C#
Copy Screen Object to Bitmap File
摘要:This is not a big deal, but it is worth to share for everyone.1privatevoidcopyScreen(stringfilename)2{3Bitmapbmp=newBitmap(this.Width,this.Height);4GraphicsgBmp=Graphics.FromImage(bmp);5IntPtrgBmpHdc=... 阅读全文

posted @ 2008-03-03 11:51 Hill Jing 阅读(2110) 评论(8) 推荐(0)

Phoenix Browser Renascence -- Beta 1 Release for Windows Mobile platform
摘要:PHOENIX BROWSER RENASCENCEPhoenix Browser is an Internet Explorer for Windows Mobile platformIt has the following major features.It is free.It supports multiple window.It supports View as Picture.Welc... 阅读全文

posted @ 2008-02-29 10:46 Hill Jing 阅读(854) 评论(0) 推荐(0)

.NET 多线程和并发性管理(Multithreading and Concurrency Management)
摘要:典型的应用程序都是由两种基本的操作组成的:CPU-bound和I/O-bound;常用的I/O-bound的操作有:I/O设备 : 键盘,显示器,鼠标和打印机等.硬件驱动:网络或通讯端口;其它硬件设备区分不同的操作类型有助于分配不同的任务到不同的线程,这样可以提高程序的性能、增加硬件的吞吐量。不过切记不要为了多线程而多线程,否则就像打开了潘多拉的盒子,有无数麻烦的事情等着你,例如:线程同步、组件并... 阅读全文

posted @ 2007-10-03 11:31 Hill Jing 阅读(1321) 评论(0) 推荐(0)

C# 编程规范 (coding standard)
摘要:读书笔记, 摘自《Programming .NET Components》1. 用Pascal命名原则定义类型、函数和常量。public class SomeClass { const int DefaultSize = 100; public SomeMethod() {}}2. 用camel命名原则定义局部变量和函数参数。int number;void MyMethod(int someNum... 阅读全文

posted @ 2007-09-30 23:03 Hill Jing 阅读(493) 评论(1) 推荐(0)

导航