内部类的事件处理方法如清单 2 所示。
The event handling method of the inner class is shown in Listing 2.
事件处理方法返回任何其他对象类型都是错误的。
Any other type of object returned from an event handler method is an error.
同样也可以在代码后置文件中来关联事件处理方法。
You can also associate an event with its event handler in the code-behind. The following code shows how to do this in C#.
应用推荐