Which will then prompt us for the event handler in our code-behind class to use?
然后就会提示我们在我们的后台代码类中该使用的事件处理函数。
VS will then automatically create a stub event handler implementation in our code-behind class file. We can use this event handler to update the Button's content with a new message when it is clicked.
然后VS就会自动地在我们的后台代码类文件中创建一个占位的事件处理函数实现。
The idea behind class wrapping is that a target class can be wrapped in a layer of instrumenting code that retains the same external behavior as the class that's wrapped.
类包装背后的理念是:目标类可以包装在一层插装代码中,后者具有与被包装的类相同的外部行为。
应用推荐