Тёмный

C# DELEGATES in 8 minutes! Learn .NET FAST! 

tutorialsEU - C#
Подписаться 24 тыс.
Просмотров 52 тыс.
50% 1

🚀 C# Progress Academy - Become a senior C# developer: academy.tutori...
We'll make sure to make a Developer out of you in no time!
So, what is C#?
C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
And what are DELEGATES in C#?
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.
Any method from any accessible class or struct that matches the delegate type can be assigned to the delegate. The method can be either static or an instance method. This flexibility means you can programmatically change method calls, or plug new code into existing classes.
To learn more, make sure to watch the video, and we promise you that you'll become a C# developer in no time! Have fun!
#csharp #dotnet #coding #tutorial #learn #microsoft #net #delegates #delegate
TAGS
dotnet,csharp,dotnet core,.net core tutorial,.net core,.net,c#,Tutorials,Tutorial,Programming,Course,Learn,Step by step,guide,programmer,core,code,c sharp,sharp,net6,6.0,.net framework,programming,visual studio,programming for beginners,coding,how to code,nick chapsas,dot net,c# programming,c# delegates,programming with mosh,tim corey,delegates,delegates guide,delegates c# programming guide,delegates callback,delegates csharp,delegate,delegates tutorial
tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x
Android: / @tutorialseuandroid
C#: / @tutorialseuc
Unity: / @tutorialseuunity
Facebook: / tutorialseu-1093802040...
LinkedIn: / tutorialseu
Discord: / discord

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@tutorialsEUC
@tutorialsEUC Год назад
🚀C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy
@vagifk2864
@vagifk2864 Год назад
Explained how it works, but not why and where ! Minus !
@zzz-ovidiu2015
@zzz-ovidiu2015 8 месяцев назад
fr
@yumyum7196
@yumyum7196 6 месяцев назад
Yea, which is key to understanding
@TheSeriousDog
@TheSeriousDog 5 месяцев назад
Why: To try to impress other developers Where: Any place you want to make it more complicated
@rainrope5069
@rainrope5069 2 месяца назад
Use them for callbacks.
@KillAllCommies2
@KillAllCommies2 Месяц назад
@@TheSeriousDog Take this with a grain of salt because I am a total noob. But from what I understand, delegates are a way to save processing with events, since these require delegates and are only processed when they are required. This seems to be important in contexts that requires a lot of processing optimization (example: video games)
@kailuu8185
@kailuu8185 Год назад
Was going to buy your stuff….. but not now. You literally taught so little in this video and used the most pointless example.
@davidmuradyan4014
@davidmuradyan4014 25 дней назад
But it was good for introduction. It was just 8 minutes)
@SaveTheHedgehog
@SaveTheHedgehog Год назад
I like functional :) (specifically is the C# language, not F#)
@Ayman73795
@Ayman73795 5 месяцев назад
i like functional programming
@ahmedbahnasy2243
@ahmedbahnasy2243 5 месяцев назад
Thanks for the simplicity !
@ezecel9
@ezecel9 Год назад
Do you think that sending a delegate into a entity method (following DDD) is a good practice? For example, if that delegate is a database request to get another entity that the first entity needs? Or we have to call it before? Thanks!
@tutorialsEUC
@tutorialsEUC Год назад
Hi, No, that's not a good practice. Preferably entities should not access data directly or indirectly. Entities encapsulate business logic and they must not depend on lower-level stuff like database access :-) Good question!
@ezecel9
@ezecel9 Год назад
@@tutorialsEUC thanks!
@watsedhaene
@watsedhaene 13 часов назад
I still have no idea why I should ever use delegates. Every example these youtubers make is something that could be done much simpler with much less code. Why would you make life harder on yourself?
@cristiancristinel2562
@cristiancristinel2562 Год назад
I have a question, as I am interested in the course, but I cannot attend it at the same time for 21 days. So, is it possible to buy just the acces to its videos ? Do you have more in-depth videos about all this subjects that can be purchased ?
@ngocthuytran3114
@ngocthuytran3114 Год назад
I would like to learn more about Functional Programming!
@trzztrzz2477
@trzztrzz2477 Год назад
Yeah but what is the practical use? Is it really useful? I don't understand man. Why should I use this thing? Damn I wanna give this shit up.
@ernest1428
@ernest1428 Год назад
Hey do you know what this is for? I am stuck since 6 hours trying to understand this shit in order to understand events hahaha
@LaughingMan44
@LaughingMan44 3 месяца назад
don't worry, you have mid-level programmers like this who are able to tell you what something is, but not why something is useful.
@watsedhaene
@watsedhaene 13 часов назад
@@ernest1428 yeah me too man. I have to learn this for school but I've got no clue why you would do all this extra work. It makes your code much less readable too...
@iswilson
@iswilson 5 месяцев назад
You never run the code?
@bluemodize7718
@bluemodize7718 Год назад
I like how you compare it to js because I have a lot of experience in js
@elijahgundorin1189
@elijahgundorin1189 Год назад
So true.. the reference to js was a lightbulb moment for me.. somehow seems much simpler to think of it as simply the c# version of a js callback
@tsmale316
@tsmale316 Год назад
​@@elijahgundorin1189exact same for me!
@abiofficial-ws7pn
@abiofficial-ws7pn 2 месяца назад
@bluemodize... Not sure if you're sarcastic or serious. That sentence referring to javascript is a double-edged sword since it'll make people unfamiliar with js think that they are poorly placed to understand delegates in C#
@KillAllCommies2
@KillAllCommies2 2 месяца назад
I didn't get it :V
@_yllw6155
@_yllw6155 Год назад
functional programming in an oop languange
@heshammostafa3446
@heshammostafa3446 Год назад
I like functional
@mohamedassekour2992
@mohamedassekour2992 5 месяцев назад
there is a big difference between Explaining concept and Explaining a its syntax. you explained the syntax not the concept you waste my 8 min in nothing
@shantanilhazarika8264
@shantanilhazarika8264 3 месяца назад
I like functional
@rushas
@rushas 8 месяцев назад
The explanation could have been simpler and easier to understand. Note that "simpler" does not mean less lines of code
@EMdragonKnight
@EMdragonKnight 8 месяцев назад
Good video.
@xxmahir3000xx
@xxmahir3000xx 10 месяцев назад
thanks
@abhirajgawai505
@abhirajgawai505 9 месяцев назад
I like functional
@PhysiquePablo
@PhysiquePablo Год назад
i like functional
@sahild6584
@sahild6584 Год назад
Handsome man
@bojohannesen4352
@bojohannesen4352 4 месяца назад
Simp
@hamaed19
@hamaed19 Год назад
I like functional programming 🎉😊
@GiSeiNoREI
@GiSeiNoREI 8 месяцев назад
That's an awful explanation of delegates.
@zzz-ovidiu2015
@zzz-ovidiu2015 8 месяцев назад
fr
@WolfgangMZwing
@WolfgangMZwing 7 месяцев назад
not needed, interfaces do same job
@bojohannesen4352
@bojohannesen4352 4 месяца назад
What's up with the dumb thumbnails. I am so happy that they haven't worked out for you.
@LaughingMan44
@LaughingMan44 3 месяца назад
at no point did you demonstrate why this is remotely useful, when I can just call the methods inside another method without having to pass them as arguments
@kvelez
@kvelez 5 месяцев назад
PrintDelegate Display = Console.WriteLine; PrintDelegate Printer = (string text) => Console.WriteLine(text); PrintDelegate PrintToFile = (string text) => { File.AppendAllText("C:/Users/kvele/Downloads/logs.txt", text); }; void DbContext(PrintDelegate log) { log("DELETE FROM users"); log("SELECT * FROM users"); }; Display("Hello World"); Printer("Hello World"); PrintToFile("Hello World"); DbContext(Display); delegate void PrintDelegate(string text);
@vaselineblueseal2141
@vaselineblueseal2141 Год назад
i like functional
@bojohannesen4352
@bojohannesen4352 4 месяца назад
A shame that this tutorial is DYSfunctional
Далее
C# Delegates Делегаты
18:14
Просмотров 87 тыс.
C# Events and Delegates Made Simple | Mosh
32:04
Просмотров 946 тыс.
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 428 тыс.
V16 из БЕНЗОПИЛ - ПЕРВЫЙ ЗАПУСК
13:57
What are Delegates? (C# Basics, Lambda, Action, Func)
18:39
how Google writes gorgeous C++
7:40
Просмотров 896 тыс.
Singleton Design Pattern in C# - Do it THAT way
13:15
Brutally honest advice for new .NET Web Developers
7:19
The New Option and Result Types of C#
15:05
Просмотров 71 тыс.
C# Delegates & Lambdas Explained
32:43
Просмотров 38 тыс.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54