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.
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 🙂
In modern framework variable without initialization is not allowing. Just FYI please. Nice explanation.
You are really saving my Computer Science degree bruv ❤
I can understand in an easy way thanks
Nice one Sir, atleast i understood how to use both of them..which is more good than the difference while explaining it to interviewer
Glad to hear that . Thanks @ Amit
Please make video on difference between concurrency and parallelism with real time example in c-sharp
Thanks for details explanation.
Thanks Sakti and all the best for your career.
Sir I want to take Udemy course of urs . will those exta questions will help me to crack more interview?@@interviewhappy
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
love u bro
Hi, kindly differentiate IList vs list in c#
If we hve to pass 3 parameter then?
.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
What is string inter polarization?
Anil, here is the example of string interpolation
string author = "Happy";
string hello = $"Hello {author} !";
Console.WriteLine(hello);
//output: "Hello Happy"
please define Extension methods
Hi Vikas, sure soon I will do.
Nice explanation. But this explanation shows the rules to use out and ref keywords in c#. It's not an explanation for differences.
Thanks Siva for bringing this up. Soon I will revise this and add more differences
You give code examples but do not run them???
I focus on explaining. Writing code, run that you should. That's how we learn.
Legendary comment 🙌
but how can you returning more than one value using these keywords?
@interviewhappy
for more than one value, u can pass model which is having multiple property similarly u can achieve.