What is Dependency Inversion Principle ?

preview_player
Показать описание
1. Full .NET Interview Course (with PDF Book)

C# / ASP.NET Core / MVC / API - Top 500 Interview Questions

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

50% Discount Applied on above link.

My best wishes are with you.
Рекомендации по теме
Комментарии
Автор

Hello Sir, thank you so much for this. It's hard to find a well explained and demonstrated tutorial on SOLID principles and you did a fantastic job!

kavitadiwan
Автор

Prepping for my 2nd .NET role, brushing up on SOLID, this helps, thanks!

Ethanjayc
Автор

you made all SOLID principles so simple to understand. Thanks for your efforts. 🙏

mvsr
Автор

This is THE BEST explanation of the D principle. Thanks a lot!

StatistikaInfo
Автор

Thanks for your videos. You made SOLID principles so easy

naveenpolasu
Автор

I'm so glad there is a "CC" option. Very well explained tho!

jboffyx
Автор

This is amazing explanation..now i understnad what this is and why its important

programmingpersistence
Автор

Perfect explanation ever seen. Thank you sir👍🏻

shohaibpt
Автор

can you answer this question "What’s the difference between the Arr? y.CopyTo() and Array.Clone()?"

magedgamil
Автор

Can you please post videos on design patterns

hemalathamanickam
Автор

Can you please explain public static void main(string[] args)?

deepakprabhu
Автор

Really simple language to understand thanks

vivekrajput
Автор

After couple of videos found this super explained. Thanks bro

JonuGurjar
Автор

Hello Sir, Great Explanation for SOLID Principle, Need at least 2 design pattern videos with example(Singleton, And Factory) Please

abhiranjantiwari
Автор

Dependency inversion principle and dependency inversion control both are same or not

leelavenkatesh
Автор

Very clear explanation and nice example. Good content, thanks and keep it up

kaminey
Автор

can object of interface be created...., is it allowed>?

DHANANJAYGROVER
Автор

Hai Sir, i have a question ... i.e
What is sso & 2Factor Authentication... Is these are related to c# or else what???


Can you please Answer it sir...

mounikakasthuri
Автор

thanks for this sir..but can you please throw some light on differnce between high level class and low level class.?

car_holic
Автор

I don't think the explanation is 100% correct. I don't understand how the service knows which implementation of the interface to use. I think this is the missing part of the explanation:


public interface ILogger
{
void Log(string message);
}

public class FileLogger : ILogger
{
public void Log(string message)
{
// Logic to log message to a file
}
}

public class DatabaseLogger : ILogger
{
public void Log(string message)
{
// Logic to log message to a database
}
}

public class SomeService
{
private readonly ILogger _logger;

public SomeService(ILogger logger)
{
_logger = logger;
}

public void DoSomething()
{
_logger.Log("Doing something important");
}
}

// In your application's startup configuration
services.AddSingleton<ILogger, FileLogger>(); // DI container is configured to use FileLogger whenever ILogger is injected

qwertyuiopsdfgh