What's Wrong - .NET Practical Interview Question #5

  Рет қаралды 2,956

DotNetMastery

DotNetMastery

Күн бұрын

Пікірлер: 15
@david.galicia.learning
@david.galicia.learning Жыл бұрын
In the line 7 looks like the variable "client" isn't being used, Isn't that another thing that should be improved/corrected?
@reshmaraj5318
@reshmaraj5318 Жыл бұрын
Thanks for the valuable contents.. i liked every video i watch just to encourage you to do more videos so that people won't miss the quality content from you
@DotNetMastery
@DotNetMastery Жыл бұрын
I appreciate that!
@anirudh8718
@anirudh8718 Жыл бұрын
Nice video! Keep them coming 👍
@sairakshith4022
@sairakshith4022 Жыл бұрын
This Series is very Helpful thank you so much.
@DotNetMastery
@DotNetMastery Жыл бұрын
You're very welcome!
@1lennartp1
@1lennartp1 Жыл бұрын
Why not injecting it. Would allow to test, mock it and resuse it in the application?
@DotNetMastery
@DotNetMastery Жыл бұрын
Injection would be a good idea as well, but many times you will see some services in the code that is needed in one place and never really updated. Rather than modifying things with injection a quick correction would be to make sure you are disposing it!
@Max-vd6fy
@Max-vd6fy Жыл бұрын
Hi, Bhrugen Patel, I know you showed a scene using "using" as you were sending emails, but what is the other scene should I use "Using"? I'm trying to understand where and when should I use it
@Max-vd6fy
@Max-vd6fy Жыл бұрын
how can I realize that a variable needs to be disposed of?
@DotNetMastery
@DotNetMastery Жыл бұрын
Something that you typically create object of but common use cases are streamreader since sometimes it might take a while to read all content.
@VaibhavSingh-to6gg
@VaibhavSingh-to6gg Жыл бұрын
Sir am working with your .net core 8 9 hour video , everything okk but when you create repository pattern at that point interface IRepository form getall method not work
@Max-vd6fy
@Max-vd6fy Жыл бұрын
probably forgot something buddy, as Im doing the same project and my is working
@Grytolle
@Grytolle Жыл бұрын
Are you sure it matters that you only have one line after the using statement?
@DotNetMastery
@DotNetMastery Жыл бұрын
If it is more than one line I prefer the braces, it makes the scope more visible and cleaner.
What's Wrong  -  .NET Practice Interview Question #6
2:32
DotNetMastery
Рет қаралды 2,2 М.
The Right Way To Return API Errors in .NET
10:40
Nick Chapsas
Рет қаралды 68 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Blazor .NET 8 - Revolution for C# Developers
41:08
Code With Kazik
Рет қаралды 380
Ricky Gervais And Stephen Go Head-To-Head On Religion
4:47
The Late Show with Stephen Colbert
Рет қаралды 15 МЛН
See Which Hotels Were Caught Not Changing Bedsheets for New Guests
4:42
Inside Edition
Рет қаралды 22 МЛН
5 Things to NEVER do on a Motorcycle
4:20
Mike on Bikes
Рет қаралды 7 МЛН
The Perfect, Last-Minute Kids' Costumes!
6:05
TheEllenShow
Рет қаралды 129 МЛН
Try Not To Laugh At These Funny Moments in Sports...
7:23
Trend Central
Рет қаралды 13 МЛН
The Smarter Way to Handle Dependency Injection in .NET 9
7:18
Patrick God
Рет қаралды 11 М.