net2:类,事件与委托
原文发布时间为:2008-07-29 —— 来源于本人的百度文章 [由搬家工具导入] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Book bk = new Book(); bk.nameChg+= new Book.myEventHandler(bk_nameChg); bk.priceChg+=new Book.myEventHandler(bk_priceChg); bk.Name = "c"; bk.Price = 123; Response.Write(bk.bookInfo()); }