Skip to content

Commit 917e726

Browse files
committed
added more to the net core section
1 parent d876ef0 commit 917e726

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

CORE/Introduction.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Summary: .NET Core Interview Questions in the Context of C# Development
2+
3+
When preparing for a C# technical interview, a solid understanding of .NET Core is essential. As the modern, cross-platform successor to the traditional .NET Framework, .NET Core plays a foundational role in contemporary C# application development. It is now part of the unified platform known simply as **.NET** (from .NET 5 onward), which consolidates .NET Core, .NET Framework, and Xamarin under a single development model.
4+
5+
The core distinction between **.NET Core** and the **.NET Framework** lies in flexibility, performance, and cross-platform capabilities. Unlike the Windows-only .NET Framework, .NET Core is platform-agnostic and open-source, allowing developers to build and deploy applications across Windows, macOS, and Linux. Understanding these differences is critical during interviews, especially for backend or full-stack roles involving ASP.NET Core.
6+
7+
Many interview questions aim to explore a candidate’s knowledge of these core differences. For instance, one foundational question focuses on **.NET Core vs. .NET Standard**. .NET Standard is not a runtime but a specification that ensures compatibility across .NET implementations, such as .NET Framework and .NET Core. Candidates are expected to demonstrate when and why to target one over the other—typically choosing .NET Core for active development and .NET Standard for libraries intended to be shared across runtimes.
8+
9+
Another important concept is the **dependency injection (DI)** model in .NET Core, which is built into the framework by default. In contrast to .NET Framework, where DI must be manually integrated via third-party libraries like Autofac or Unity, .NET Core simplifies service management through its built-in `IServiceCollection` and `IServiceProvider`. This feature is central to ASP.NET Core and is often assessed in architectural or design-pattern questions.
10+
11+
Middleware is another topic where .NET Core differentiates itself. Unlike the old pipeline model of HttpModules and HttpHandlers in the .NET Framework, **middleware in .NET Core** is modular, composable, and linear. Candidates are frequently asked to describe how middleware components are used in the request pipeline to manage tasks like logging, authentication, and routing.
12+
13+
Understanding how .NET Core manages **cross-platform runtime behavior** is also essential. The runtime uses Runtime Identifiers (RIDs) and supports deployment via portable and self-contained models. Candidates may be asked to explain the **CoreCLR runtime**, which supports Just-In-Time (JIT) and Ahead-of-Time (AOT) compilation and provides better performance and resource usage compared to the older CLR in .NET Framework.
14+
15+
Modern ASP.NET Core applications use `appsettings.json` and environment variables for configuration, replacing the rigid and centralized `web.config`. This decoupled configuration system, along with dependency injection, gives developers fine-grained control over environment-specific behavior.
16+
17+
From a performance perspective, .NET Core includes significant enhancements in memory management, garbage collection, and startup performance. The garbage collector (GC) in CoreCLR has been optimized for server-side performance, offering features like background GC and workstation GC modes.
18+
19+
Interviewers also often assess familiarity with performance-focused features like `Span<T>` and `Memory<T>`, which enable low-allocation, high-performance memory access—especially relevant in high-throughput systems like APIs or real-time applications.
20+
21+
Additionally, a candidate may be asked to explain the role of **`IHostedService`** and background services in .NET Core, which are used for long-running tasks outside the context of a request/response lifecycle. This is particularly important in microservice architectures or systems that require scheduled processing.
22+
23+
The shift from **IIS to Kestrel** as the default web server in ASP.NET Core is another noteworthy topic. Kestrel is lightweight, high-performance, and cross-platform. Candidates are expected to understand how it can be used alone or with a reverse proxy like IIS or Nginx for enhanced security and load balancing.
24+
25+
In summary, these interview questions collectively probe a candidate's understanding of the architecture, tooling, and philosophy behind modern .NET Core and C# development. A strong grasp of these concepts not only demonstrates technical competency but also shows readiness for modern enterprise application development in the evolving .NET ecosystem.
26+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Preparing for a technical interview for a C# role is a crucial step in landing a
2424
+ [Abstract Classes](https://github.com/rcallaby/CSharp-Interview-Questions/blob/main/Abstract-Classes/Introduction.md)
2525
+ [Sealed Classes](https://github.com/rcallaby/CSharp-Interview-Questions/blob/main/Sealed-Classes/Introduction.md)
2626
+ [Clean Code](https://github.com/rcallaby/CSharp-Interview-Questions/blob/main/Clean-Code/Introduction.md)
27+
* [CORE]
2728
+ [Design Patterns](https://github.com/rcallaby/CSharp-Interview-Questions/blob/main/Design-Patterns/Introduction.md)
2829
+ [SOLID Code](https://github.com/rcallaby/CSharp-Interview-Questions/blob/main/SOLID-Code/Introduction.md)
2930
+ [Unit Tests](https://github.com/rcallaby/CSharp-Interview-Questions/blob/main/Unit-Tests/Introduction.md)

0 commit comments

Comments
 (0)