Wind-Eagle

No pain,no gain!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年5月3日

摘要: 反射(Reflection)是.NET中的重要机制,通过放射,可以在运行时获得.NET中每一个类型(包括类、结构、委托、接口和枚举等)的成员,包括方法、属性、事件,以及构造函数等。还可以获得每个成员的名称、限定符和参数等。有了反射,即可对每一个类型了如指掌。如果获得了构造函数的信息,即可直接创建对象,即使这个对象的类型在编译时还不知道。 程序代码在编译后生成可执行的应用,我们首先要了解这种... 阅读全文

posted @ 2008-05-03 20:36 Andrew Yin 阅读(406) 评论(0) 推荐(0)

2008年4月25日

摘要: I noticed that a lot of people found my mouse pointer as AJAX progress indicator example by using search terms suggesting they were looking for a more graphical indicator. So, here’s an example of do... 阅读全文

posted @ 2008-04-25 11:08 Andrew Yin 阅读(402) 评论(0) 推荐(0)

摘要: A problem that has always plagued web developers has been providing detailed progress indication for server-side tasks. The stateless nature of the HTTP protocol makes implementing a mechanism for con... 阅读全文

posted @ 2008-04-25 10:52 Andrew Yin 阅读(734) 评论(0) 推荐(0)

2008年4月24日

摘要: 对于new()约束,大家可能有一个误解,以为使用了new约束之后,在创建对象时与非泛型的版本是一致的: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> public class Tester where T : new() ... 阅读全文

posted @ 2008-04-24 19:33 Andrew Yin 阅读(327) 评论(0) 推荐(0)

摘要: 归纳起来,泛型比非泛型具有下面两个优点: 1、 更加安全 在非泛型编程中,虽然所有的东西都可以作为Object传递,但是在传递的过程中免不了要进行类型转换。而类型转换在运行时是不安全的。使用泛型编程将可以减少不必要的类型转换,从而提高安全性。 2、 效率更高 在非泛型编程中,将简单类型作为Object传递时会引起Boxing和Unboxing操作,这两个过程都是具有很大开销的。使用泛型编程就不... 阅读全文

posted @ 2008-04-24 15:48 Andrew Yin 阅读(324) 评论(0) 推荐(0)

2008年4月23日

摘要: 前面我们创建了一个很简单的GoogleMap控件,它显然不满足我们的需求,通过分析,我们有如下这些进一步的需求: 一. 我们想要给用户提供在客户端调整Map大小的功能,也就是说我们的用户可以根据自己的喜好在网页上自己调整Map的大小. 要实现这个功能,我们需要三个属性:MaxHeight,MaxWidth,SizePercent,我决定用前面重写的Heght和Width属性充当MaxHeig... 阅读全文

posted @ 2008-04-23 16:01 Andrew Yin 阅读(2954) 评论(6) 推荐(0)

摘要: 最近想搞两个基于Google Map的网站玩玩,觉得直接操作Google Map API实在麻烦,于是就想用C#写一个封装Google Map API的GoogleMap Web服务器控件,这样,用ASP.NET创建基于Google Map的网站就非常简单啦! 阅读全文

posted @ 2008-04-23 12:58 Andrew Yin 阅读(3685) 评论(3) 推荐(0)

2008年3月17日

摘要: 1.根据项目要求组建团队,尽量让性格相似,但技术互补的人在一起 2.对项目成员开展技术、做人、做事及职业道德等方面的培训 3.给项目成员制定年度目标,并协助他完成 4.了解下属的核心需求(公平、成就感和同事友情),并创造条件去满足他 5.积极主动与下属进行沟通(每月一次/人) 6.制定规范化的项目管理手册 7.做好项目前期的准备工作:技术调查、培训、需求分析、软硬件的配置等 8.进行项目的调研、需... 阅读全文

posted @ 2008-03-17 09:46 Andrew Yin 阅读(283) 评论(0) 推荐(0)

2008年1月23日

摘要: 今天看到AJAX ControlToolKit的源码中得到一个类,代码如下: using System; using System.Web.UI; namespace AjaxControlToolkit { public static class Utility { public static void SetFocusOnLoad(Control contro... 阅读全文

posted @ 2008-01-23 13:44 Andrew Yin 阅读(209) 评论(0) 推荐(0)

2008年1月8日

摘要: public static Control GetPostBackControl(Page page) { Control control = null; string ctrlname = page.Request.Params.Get("__EVENTTARGET"); if (ctrlname != null && ctrlna... 阅读全文

posted @ 2008-01-08 17:35 Andrew Yin 阅读(227) 评论(0) 推荐(0)