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

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 29

  • @angelanaya8037
    @angelanaya8037 ปีที่แล้ว +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 🙂

  • @Yahweh5995
    @Yahweh5995 ปีที่แล้ว +1

    You are really saving my Computer Science degree bruv ❤

  • @DeepmalaWakade
    @DeepmalaWakade หลายเดือนก่อน

    Sir can you please give the real time project usage of ref and out parameter

  • @HAMAngular
    @HAMAngular 5 หลายเดือนก่อน

    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

  • @bukkanaresh
    @bukkanaresh 5 หลายเดือนก่อน +1

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

  • @VitthalPatil-c9k
    @VitthalPatil-c9k 8 หลายเดือนก่อน

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

  • @M.Gufran-w2o
    @M.Gufran-w2o 2 หลายเดือนก่อน

    I'm not satisfied for out ref please tell me some different ways

  • @valuableknowledge1326
    @valuableknowledge1326 5 หลายเดือนก่อน

    If we hve to pass 3 parameter then?

  • @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

  • @sudharsansuresh3874
    @sudharsansuresh3874 10 หลายเดือนก่อน

    Hi, kindly differentiate IList vs list in c#

  • @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

  • @karunakamble7277
    @karunakamble7277 2 หลายเดือนก่อน

    PLease nake video on pre-increment/decrement operator and post-increment/decrement operator..😃

  • @durgisaijaswanthkumar4336
    @durgisaijaswanthkumar4336 ปีที่แล้ว

    I can understand in an easy way thanks

  • @codewithsakti8197
    @codewithsakti8197 ปีที่แล้ว +1

    Thanks for details explanation.

    • @interviewhappy
      @interviewhappy  ปีที่แล้ว +1

      Thanks Sakti and all the best for your career.

    • @codewithsakti8197
      @codewithsakti8197 ปีที่แล้ว

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

  • @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

  • @JFBond-zs8xf
    @JFBond-zs8xf ปีที่แล้ว

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

    • @interviewhappy
      @interviewhappy  ปีที่แล้ว +2

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

    • @Yahweh5995
      @Yahweh5995 ปีที่แล้ว

      Legendary comment 🙌

  • @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

  • @itx__tallal2133
    @itx__tallal2133 4 หลายเดือนก่อน

    love u bro

  • @WaqasMehmood-nq5uz
    @WaqasMehmood-nq5uz 5 หลายเดือนก่อน

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

    • @akhtarraz
      @akhtarraz 4 หลายเดือนก่อน

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