摘要:
C# 1.0中的foreach没有迭代器的时候,创建一个可用于foreach的集合(C# 1.0):public class MyCollection : IEnumerable{public MyEnumerator GetEnumerator(){return new MyEnumerator(this);}public class MyEnumerator : IEnumerator{pub... 阅读全文
posted @ 2009-01-07 20:27
happyriver
阅读(192)
评论(0)
推荐(0)
摘要:
一).用户控件和自定义控件概述 用户控件(UserControl): 扩展名为*.ascx,跟*.aspx在结构上相似,是指页面中 加载的功能块,只是用户控件不能单独作为页面运行,必须嵌入到*.aspx页面或其它用 户控件中使用. 自定义控件,跟HtmlControl或WebControl相似,编译后可以添加引用到工具栏里 面,直接用鼠标拖动使用. (二... 阅读全文
posted @ 2009-01-07 14:08
happyriver
阅读(382)
评论(0)
推荐(0)
浙公网安备 33010602011771号