C# Delegates and Lambdas

  Рет қаралды 3,946

Coding Tutorials

Coding Tutorials

Күн бұрын

Пікірлер: 20
@CodingTutorialsAreGo
@CodingTutorialsAreGo 4 жыл бұрын
Want to know more? Just ask below. You can find the source at github.com/JasperKent/Delegates-and-Lambdas And if you want to see more videos, subscribe here: kzbin.info/door/qWQzlUDdllnLmtgfSgYTCA
@antoninvojtesek1084
@antoninvojtesek1084 2 жыл бұрын
I am very impressed by the quality and clarity of your explanation. Hat down.
@andywilson5677
@andywilson5677 Жыл бұрын
This is the best C# channel I've found on youtube. Very clear explanations. Thank you!
@hurricane8433
@hurricane8433 2 жыл бұрын
This is the best tutorial on an abstract concept. Thank you Ser.
@nicholasziglio
@nicholasziglio 3 жыл бұрын
I can't thank you enough for the beautiful and crystal clear explanation! There are so many poor explanations I have wasted my time on.. I'm so happy I found this gem :)
@Maxim_Grekov
@Maxim_Grekov 2 жыл бұрын
I'm shocked that Delegates is so easy stuff! When I've started learning Func, Action, Lambdas were so confusing for me. Thank you!!!
@jankool01
@jankool01 2 жыл бұрын
The best explanation on KZbin and it has fewer than 1k views.
@marceloleoncaceres6826
@marceloleoncaceres6826 6 ай бұрын
Great examples, thanks for sharing them,
@DavidGilden
@DavidGilden 8 күн бұрын
Great lesson ❤
@barnabassolomon1629
@barnabassolomon1629 9 ай бұрын
bless u
@drleandrocorrea
@drleandrocorrea 2 жыл бұрын
Thank you very much. Your videos are really clear.
@bioanu
@bioanu 2 жыл бұрын
Hi Jasper! I have to thank you very much because of your mini series I finally understand what a delegate is!! I have no words to thank you!! The only ambiguity is the connection between the lambda expressions and anonymous functions. At 10:25 "a lambda is just a shorthand way of writing and passing an anonymous function to a delegate". Could you explain more?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
The point is simply that when we use a lambda, we don't give it a name. 'Double' is a named function. 'x => x * 2' does the same thing, but doesn't have a name.
@bioanu
@bioanu 2 жыл бұрын
@@CodingTutorialsAreGo Yes, this is crystal clear. What confuse me is the idea of passing an anonymous function to a delegate. An anonymous function returns a delegate, but I do not know it could be passed to a delegate
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
@@bioanu No. Just like any function, and anonymous function returns and object of a particular type or void. I think the confusion may be down to the fact that C# also has a redundant feature to create anonymous functions that uses the keyword 'delegate'. But these functionally equivalent to lambdas and are completely superseded by them.
@Chapali9a
@Chapali9a 3 жыл бұрын
Excellent lesson. Finally I understood delegates and func. Thank you. Any chance of a lesson on Interface with real world implementation or examples.
@sky-soft-2024
@sky-soft-2024 8 ай бұрын
Thank you :)
@giridharamadhavan2200
@giridharamadhavan2200 4 жыл бұрын
Is there any situation where we have to use only delegate and not by using Func or Action ?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 4 жыл бұрын
Thanks for the question. I'm not sure quite what you're getting at. Certainly you don't have to use Func or Action, you just need to declare a variable of a delegate type, which you could do explicitly or with other generics such as Predicate. Also, you could simply assign into a variable with implicit type var, but in practice it doesn't get you very far.
C# Events
22:40
Coding Tutorials
Рет қаралды 2,3 М.
What is a C# Delegate and how does it help my code? + Example
17:54
Thank you Santa
00:13
Nadir Show
Рет қаралды 48 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,4 МЛН
What are Delegates? (C# Basics, Lambda, Action, Func)
18:39
Code Monkey
Рет қаралды 301 М.
C# LAMBDA Expressions and ANONYMOUS Functions Tutorial | 2021
14:30
C# Why Delegates
9:04
Jamie King
Рет қаралды 107 М.
C# Delegates & Lambdas Explained
32:43
Raw Coding
Рет қаралды 39 М.
C# Events & Delegates
17:21
Tarodev
Рет қаралды 90 М.
Blazor RenderFragment
23:11
Coding Tutorials
Рет қаралды 2,5 М.
Lambda Calculus - Computerphile
12:40
Computerphile
Рет қаралды 1 МЛН
Casten oder Converten? - Alles über die Typenkonvertierung in C#!
20:14
Programmieren Starten
Рет қаралды 4,8 М.
The Right Way to Check for Null in C#
9:35
Nick Chapsas
Рет қаралды 98 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 48 МЛН