What is the difference between “out” and “ref” parameters?

Поделиться
HTML-код
  • Опубликовано: 11 июл 2024
  • 1. Full .NET Interview Course
    C# / ASP.NET Core / MVC / API - Top 500 Interview Questions
    www.udemy.com/course/csharp-o...
    Don't worry if course not helping you, Udemy has 30 days Free Refund Policy.
    2. Quick Revision Book (PDF format)
    Top 500 .NET Interview Questions - OOPS/ C#/ ASP.Net/ MVC/ SQL /.Net Core /Web API
    imojo.in/interviewhappy
    50% Discount Applied on above link.
    Don't worry if book not helping you, I will return 100% of your money with in 7 days of purchase. Just mail me at anuragrawat123@gmail.com.
    My best wishes are with you.

Комментарии • 26

  • @angelanaya8037
    @angelanaya8037 11 месяцев назад +1

    I have been searching for the difference from a very long time, but never got the exact answer. After watching this video my concepts are crystal clear, thank you thank you very much for the crisp explanation 🙂

  • @bukkanaresh
    @bukkanaresh 2 месяца назад +1

    In modern framework variable without initialization is not allowing. Just FYI please. Nice explanation.

  • @Yahweh5995
    @Yahweh5995 Год назад +1

    You are really saving my Computer Science degree bruv ❤

  • @durgisaijaswanthkumar4336
    @durgisaijaswanthkumar4336 Год назад

    I can understand in an easy way thanks

  • @amitsingh-wu9tx
    @amitsingh-wu9tx Год назад +1

    Nice one Sir, atleast i understood how to use both of them..which is more good than the difference while explaining it to interviewer

  • @user-vn3ks1ss8j
    @user-vn3ks1ss8j 4 месяца назад

    Please make video on difference between concurrency and parallelism with real time example in c-sharp

  • @codewithsakti8197
    @codewithsakti8197 10 месяцев назад +1

    Thanks for details explanation.

    • @interviewhappy
      @interviewhappy  10 месяцев назад +1

      Thanks Sakti and all the best for your career.

    • @codewithsakti8197
      @codewithsakti8197 10 месяцев назад

      Sir I want to take Udemy course of urs . will those exta questions will help me to crack more interview?@@interviewhappy

  • @HAMAngular
    @HAMAngular 2 месяца назад

    Sir agar yha jo Variable declear kiya ha
    Agar ye variable constructor my declear kiya jay to ref kaam kry ga
    And sir Very Good Cource

  • @itx__tallal2133
    @itx__tallal2133 Месяц назад

    love u bro

  • @sudharsansuresh3874
    @sudharsansuresh3874 7 месяцев назад

    Hi, kindly differentiate IList vs list in c#

  • @valuableknowledge1326
    @valuableknowledge1326 2 месяца назад

    If we hve to pass 3 parameter then?

  • @kishorebandi7411
    @kishorebandi7411 Год назад

    .Net core service.AddScoped() method real time example .normally everyone saying that within the scope it use the same instance. but am not understanding how can i find it is within scope or not. please provide me good real time example

  • @AnilKumar-xz9bg
    @AnilKumar-xz9bg Год назад +1

    What is string inter polarization?

    • @interviewhappy
      @interviewhappy  Год назад +2

      Anil, here is the example of string interpolation
      string author = "Happy";
      string hello = $"Hello {author} !";
      Console.WriteLine(hello);
      //output: "Hello Happy"

  • @vikasshankhyadhar8589
    @vikasshankhyadhar8589 Год назад +1

    please define Extension methods

  • @Asivakumar503
    @Asivakumar503 Год назад +1

    Nice explanation. But this explanation shows the rules to use out and ref keywords in c#. It's not an explanation for differences.

    • @interviewhappy
      @interviewhappy  Год назад +1

      Thanks Siva for bringing this up. Soon I will revise this and add more differences

  • @JFBond-zs8xf
    @JFBond-zs8xf 10 месяцев назад

    You give code examples but do not run them???

    • @interviewhappy
      @interviewhappy  10 месяцев назад +2

      I focus on explaining. Writing code, run that you should. That's how we learn.

    • @Yahweh5995
      @Yahweh5995 9 месяцев назад

      Legendary comment 🙌

  • @WaqasMehmood-nq5uz
    @WaqasMehmood-nq5uz 2 месяца назад

    but how can you returning more than one value using these keywords?
    @interviewhappy

    • @akhtarraz
      @akhtarraz Месяц назад

      for more than one value, u can pass model which is having multiple property similarly u can achieve.