What are Extension Methods in C#? When to use extension methods in real applications?

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 17

  • @All_About_Portfolio
    @All_About_Portfolio Рік тому +1

    Short, clear and to the point... u got new subscriber :)

  • @imadabab
    @imadabab 9 місяців тому +2

    Outstanding. I have bought your 500 questions in Udemy. Awesome. Thanks a lot, professional.

  • @jagendrasrivastava2263
    @jagendrasrivastava2263 8 місяців тому

    Thanks Sir, Please Keep posting such videos. Your Explaination very good.

  • @mohammedshahid8303
    @mohammedshahid8303 Рік тому

    Good.. and also please upload an IT informative video on every Saturday/Sunday that will be helpful for learning both the knowledge and experience of IT

  • @pritampatil9241
    @pritampatil9241 Рік тому +2

    extension method must be defined at top level static class how to solve error

    • @interviewhappy
      @interviewhappy  Рік тому

      Pritam, your query is not clear, extension methods should be under static class.

  • @noumankhan8913
    @noumankhan8913 Рік тому +2

    Nice playlist ..very helpful for revision ..

    • @interviewhappy
      @interviewhappy  Рік тому +1

      Thanks Nouman and all the best for your career.

  • @advn6707
    @advn6707 5 місяців тому

    You said the extension method will be called by the class name not the object
    But here in the string test; test is the reference variable that holds the object of the string right.
    I'm confused can you clarify it sir

  • @yaswanthsai9894
    @yaswanthsai9894 11 місяців тому

    Why to write a extension method, while you can write a normal method and call it when you need it?

    • @shirishshinde8920
      @shirishshinde8920 3 місяці тому

      you are correct by simply writing new method we can do this thing then how we needed to have extension method? thats what not explained here.

  • @pardhasaradhi0076
    @pardhasaradhi0076 7 місяців тому

    Super Videos