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

Sdílet
Vložit
  • čas přidán 14. 11. 2022
  • 🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: www.udemy.com/course/master-f...
    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

Komentáře • 40

  • @tutorialsEUC
    @tutorialsEUC  Před rokem +1

    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: www.udemy.com/course/master-fullstack-web-development-with-angular-and-csharp-aspnet/?referralCode=1506E05A57EE550675F0

  • @vagifk2864
    @vagifk2864 Před rokem +33

    Explained how it works, but not why and where ! Minus !

    • @zzz-ovidiu2015
      @zzz-ovidiu2015 Před 4 měsíci +1

      fr

    • @yumyum7196
      @yumyum7196 Před 2 měsíci +1

      Yea, which is key to understanding

    • @TheSeriousDog
      @TheSeriousDog Před 2 měsíci +6

      Why: To try to impress other developers
      Where: Any place you want to make it more complicated

  • @cristiancristinel2562
    @cristiancristinel2562 Před rokem +1

    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 ?

  • @ezecel9
    @ezecel9 Před rokem +5

    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  Před rokem +3

      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 Před rokem

      @@tutorialsEUC thanks!

  • @ahmedbahnasy2243
    @ahmedbahnasy2243 Před 2 měsíci

    Thanks for the simplicity !

  • @ngocthuytran3114
    @ngocthuytran3114 Před 8 měsíci

    I would like to learn more about Functional Programming!

  • @SaveTheHedgehog
    @SaveTheHedgehog Před rokem +1

    I like functional :) (specifically is the C# language, not F#)

  • @shantanilhazarika8264
    @shantanilhazarika8264 Před 10 dny

    I like functional

  • @kailuu8185
    @kailuu8185 Před rokem +6

    Was going to buy your stuff….. but not now. You literally taught so little in this video and used the most pointless example.

  • @_yllw6155
    @_yllw6155 Před rokem +2

    functional programming in an oop languange

  • @xxmahir3000xx
    @xxmahir3000xx Před 7 měsíci

    thanks

  • @EMdragonKnight
    @EMdragonKnight Před 4 měsíci

    Good video.

  • @Ayman73795
    @Ayman73795 Před měsícem

    i like functional programming

  • @iswilson
    @iswilson Před měsícem

    You never run the code?

  • @pablosalazar2313
    @pablosalazar2313 Před 10 měsíci

    i like functional

  • @bluemodize7718
    @bluemodize7718 Před rokem +6

    I like how you compare it to js because I have a lot of experience in js

    • @elijahgundorin1189
      @elijahgundorin1189 Před rokem +1

      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 Před 10 měsíci

      ​@@elijahgundorin1189exact same for me!

  • @trzztrzz2477
    @trzztrzz2477 Před rokem +4

    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 Před rokem +2

      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

  • @sahild6584
    @sahild6584 Před rokem +1

    Handsome man

  • @rushas
    @rushas Před 4 měsíci

    The explanation could have been simpler and easier to understand. Note that "simpler" does not mean less lines of code

  • @hamaed19
    @hamaed19 Před rokem

    I like functional programming 🎉😊

  • @WolfgangMZwing
    @WolfgangMZwing Před 3 měsíci

    not needed, interfaces do same job

  • @GiSeiNoREI
    @GiSeiNoREI Před 4 měsíci +3

    That's an awful explanation of delegates.

  • @mohamedassekour2992
    @mohamedassekour2992 Před měsícem

    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

  • @bojohannesen4352
    @bojohannesen4352 Před 14 dny

    What's up with the dumb thumbnails. I am so happy that they haven't worked out for you.

  • @kvelez
    @kvelez Před měsícem

    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);

  • @heshammostafa3446
    @heshammostafa3446 Před rokem

    I like functional

  • @vaselineblueseal2141
    @vaselineblueseal2141 Před rokem

    i like functional

  • @abhirajgawai505
    @abhirajgawai505 Před 5 měsíci

    I like functional