C# Programming: Mastering Delegates & Events

xvBbzI8tPAYd8k1teY35oZ3DKU74zZLO

本课程教您 C# 中的委托和事件,以及如何构建高效、强大的应用程序。

您将学到什么
学习和理解 C# 中的委托
学习和理解 C# 中的事件 学习
定义和引发事件
学习使用路由事件
学习创建路由事件
学习如何定义委托类型
学习如何使用预定义的委托类型
学习如何创建委托变量来操作方法
了解如何在 Windows 窗体和 WPF 中使用事件处理程序

Published 07/2022
Genre: eLearning | MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz
Language: English | Size: 1.49 GB | Duration: 21 lectures • 2h 14m

This course teaches you delegates and events in C# and how to build efficient, powerful applications.

What you’ll learn
Learn and Understand Delegates in C#
Learn and Understand Events in C#
Learn to Define and raise events
Learn to Use routed events
Learn to Create routed events
Learn How to define delegate types
Learn How to Use predefined delegate types
Learn How to Create delegate variables to manipulate methods
Learn How to Use event handlers in Windows Forms and WPF

Requirements
Visual Studio
Basic C# programming knowledge is helpful
Description
Welcome to this course. A delegate is a type that represents references to methods with a particular parameter list and return type. When you instantiate a delegate, you can associate its instance with any method with a compatible signature and return type. You can invoke (or call) the method through the delegate instance. Delegates are used to pass methods as arguments to other methods. Event handlers are nothing more than methods that are invoked through delegates. You create a custom method, and a class such as a windows control can call your method when a certain event occurs. Events are user actions such as key press, clicks, mouse movements, etc., or some occurrence such as system generated notifications. Applications need to respond to events when they occur. For example, interrupts. Events are used for inter-process communication. People often find it difficult to see the difference between events and delegates. C# adds on value to the often mentioned world of event driven programming by adding support through events and delegates. It doesn’t help matters by allowing you to declare field-like events which are automatically backed by a delegate variable of the same name. This course aims to clarify the matter for you. The events are declared and raised in a class and associated with the event handlers using delegates within the same class or some other class. The class containing the event is used to publish the event. This is called the publisher class. Some other class that accepts this event is called the subscriber class. Events use the publisher-subscriber model.

In this course, you’ll learn

Learn and Understand Delegates in C#

Learn and Understand Events in C#

Learn to Define and raise events

Learn to Use routed events

Learn to Create routed events

Learn How to define delegate types

Learn How to Use predefined delegate types

Learn How to Create delegate variables to manipulate methods

Learn How to Use event handlers in Windows Forms and WPF

Who this course is for
Web Developers
Software Developers
Programmers
Anyone interested in C#

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/35422.html

赞 (0)
steven的头像steven
上一篇 2022年7月11日
下一篇 2022年7月11日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部