.NET Core interview questions and answers
for an experienced developer: 1. What are the differences between .NET Core and .NET Framework? Answer: Platform : .NET Core is cross-platform, meaning it can run on Windows, Linux, and macOS. .NET Framework, on the other hand, is only for Windows. Performance : .NET Core is optimized for performance and is faster compared to the .NET Framework. Deployment : .NET Core supports side-by-side installation, meaning multiple versions can be installed on the same machine, while .NET Framework requires a single version per machine. Open Source : .NET Core is open source, while .NET Framework is closed source. Versioning : .NET Core uses a more modular approach with NuGet packages, while .NET Framework is monolithic. 2. What is Dependency Injection (DI) in .NET Core? Answer: Dependency Injection is a design pattern used to implement IoC (Inversion of Control). In .NET Core, DI is built-in and allows objects to be passed (injected) into classes that depend on them. This promotes loose coupling...