Explain Generics in C# ? When and why to use them ?
HTML-код
- Опубликовано: 20 июн 2022
- 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.
simple and straight
Very Nice Explanation
Thank you sir
So in generic class we have to define static class only.is'tit?
Good explanation, thank you!
Glad it was helpful! Daniel
Thank you. Very useful. Generic are necessary.
Welcome Vinay
how do equate class using generics?
say u have class A with set of properties and class B with other set of properties so now how do u compare?
Hi Kiran, I think object.Equals and with generics this IEquatable will do what you are asking.
Hello Happy, it will be nice, if you make video about inheritance from generic class. Thank you
Tq sir
Good explanation. Thanks.
You're welcome!
good explanation
Thanks Leela
Very very useful
Glad you think so@ kaniyansai
Apart from object, cant we use method overloading?
Yes Sampat you are right, but then you have to write more lines of code for new overloaded methods which is a overhead then.
@@interviewhappy hummmm. I was also started thinking this lately. If 2 such methods exist then results in 4 methods.
Thanku sir Nice explanation
Always welcome @prabhat
Please make video on array 😢real time projects pls
What does generics internally use?
Good question Deepak. I will get back on this and if you know, then you can share.
Pls make a video of framework automation it is helpful every one pls do it asap
Sure, I will try, but it might take some time. All the best.
Can you make video on Generic collection?
Sure Madhavi
Please do video on Reflection in c#
Sure Raja, soon I will
Can you make video on Entity framework core interview questions?
I added some questions of EF but not all. May be in future I will add them.
Set video paly speed to 1.25