最新消息:请大家多多支持

C# Programming: Mastering Delegates & Events

其他教程 dsgsd 121浏览 0评论

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#


Password/解压密码www.tbtos.com

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » C# Programming: Mastering Delegates & Events

您必须 登录 才能发表评论!